Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Images, Rollovers Dont Work When Viewed On Web or From C:

Status
Not open for further replies.

Souljah

Technical User
May 26, 2002
3
US
Im realy pulling my hair out.
The images and rollover codes all look ok when viewed from Dreamweaver but if you open the file from the C: or on a link the images go away
As wellCSS sheet is saved in same area as HTML page and they dont show up either
as well my old web sites from 2 weeks ago open fine, my luck that I left this job to 2 days before the client wants it
HELP IF YOU CAN
Roll Over code from Dreamweaver utility <tr>
<td rowspan=&quot;2&quot; align=&quot;left&quot; valign=&quot;top&quot; width=&quot;19%&quot; ><a href=&quot;/index.html&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('about','','/images/Buttons/N_About_Down.jpg',1)&quot;><img
name=&quot;about&quot; border=&quot;0&quot; src=&quot;/images/Buttons/N_About_UP.jpg&quot; width=&quot;122&quot; height=&quot;116&quot;></a></td>
<td width=&quot;81%&quot; height=&quot;16&quot;> </td>
</tr>
Image Code
<div align=&quot;center&quot;><font face=&quot;Arial, Helvetica, sans-serif&quot; class=&quot;HeaderBlue&quot;>Strategic
Planning<img src=&quot;/images/S_chess_blueMirrorNavy129x97BabyBlueSharpedFeathured.jpg&quot; width=&quot;130&quot; height=&quot;101&quot; align=&quot;right&quot;></font>
</div>
 
My guess is that your relative paths have incorrect syntax. Try this where you have
src=&quot;/images/Buttons/N_About_UP.jpg&quot;
try changing it to:
src=&quot;../images/Buttons/N_About_UP.jpg&quot;

This should send you to the relative root directory. If two &quot;..&quot;'s don't work, try just one. A terribly kludgy way of achieving the same end result is to insert the URL for the links - but PLEASE don't go this route unless completely desperate. It cause the server to do NSLookups to resolve the path to each URL. ( in other words, you did not hear this from me!! ) This second, ugly solution is a good way to have an extremely slow website w/ a lot of broken links down the road. The first method should work... as long as those referenced dirs are subdirectories of your website's root dir.

Good luck!

-hammera
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top