Are you running the site in the root of the web server or as a separate application?
Look at this:
<img src="/images/topleft.gif" width="290" height="51" />
This references an images in the "root". If you just double click the .html file in Windows Explorer, the browser will look for images in the root of your *disk* so it looks for a folder called C:\Images which most likely doesn't exist.
If you open this file over http, things will be different. Consider the following:
1. Your web site is located at c:\Inetpub\wwwroot
2. You have an images folder in c:\Inetpub\wwwroot\Images
3. You open the file as
http://localhost where the .html file is located at the folder mentioned at 1).
In this scenario, things will work. The "root" for IIS will be the folder at c:\Inetpub\wwwroot so the /Images folder will be found.
However, when you set up a site as a separate app, things will change:
Consider the following:
1. Your web site is located at c:\Inetpub\wwwroot\MySite
2. You have an images folder in c:\Inetpub\wwwroot\MySite\Images
3. You open the file as
http://localhost/MySite where the .html file is located at the folder mentioned at 1).
In that case, things won't work. When you rerer to the images as /Images, the browser will try to locate the images folder at c:\Inetpub\wwwroot\Images and not at c:\Inetpub\wwwroot\MySite\Images
So, it's all a matter of set up and the way you open / refer to the files. Hopefully, this post sheds some light on that....
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.