russellcurtis
10-12-2002, 11:51 PM
I am trying to reference in an image on my site. Ok, that sounds easy. I want this image to be on every page of my site, no matter where the page is. I do not want to alter the code on every page depending upon how deeply that page is located. However, as I am using lots of images on each page, I do not want to have to use the following:
<img src="http://www.mysite.com/images/image.gif">
as all those DNS queries will slow me down. So here's the rub...how can I reference images relative to the root of the site, rather than the page itself? I have tried the following:
<img src="/images/image.gif">
expecting the first forward slash to reference the root. IT DOES NOT WORK!
I am getting desperate - can someone please tell me what I am doing wrong? I am using MS IIS 5 on a Win2k machine, if that makes a difference.
Cheers
Russell
<img src="http://www.mysite.com/images/image.gif">
as all those DNS queries will slow me down. So here's the rub...how can I reference images relative to the root of the site, rather than the page itself? I have tried the following:
<img src="/images/image.gif">
expecting the first forward slash to reference the root. IT DOES NOT WORK!
I am getting desperate - can someone please tell me what I am doing wrong? I am using MS IIS 5 on a Win2k machine, if that makes a difference.
Cheers
Russell