Jump to content

How to make a library of common graphics?


sigung_q

Recommended Posts

Greetings all!!

OK, so here's the original code line:

 

<img class="xr_ap" src="member_album1_htm_files/564.png" alt="" title="" style="left: 0px; top: 0px; width: 1375px; height: 00001050px;"/>

 

However, I use this, and other images from the same directory in quite a few other pages. However, those pages will not be in the same directory. So I changed the code line to this:

 

<img class="xr_ap" src="c:/photo_album_lib/member_album1_htm_files/564.png" alt="" title="" style="left: 0px; top: 0px; width: 1375px; height: 00001050px;"/>

 

Hoping to have one central repository of common graphics and style sheets. However, the browsers act as if there is nothing there.

 

Is there a way to do this, or do I have to repeat copy everything into every directory for every page? If so, things are going to get very cluttered very quickly.

 

Link to comment
Share on other sites

Some browsers might not work with absolute file paths for security reasons. Use relative paths. You can use ../ to move up a directory from the current HTML file's location.

Link to comment
Share on other sites

Relative paths are the norm. Also an empty string as an alt attribute will not validate, and leading zeros on the height is a bad idea that could cause trouble.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...