|
The reason that happened is because your images have a slash in front of them.
src="/image.gif" tells the server to go to the root of the website and look for the graphic.
src="image.gif" tellse the server to look in the same folder as the page that called the image.
Normally the second method would be most commonly used. Once instance where I could think to use the document root method is if you wanted to switch the location of your html files at a later date, but did not want to move your images.
|