PDA

View Full Version : Image Rollover On Navigation Bar


CrestDelegate
08-03-2005, 11:47 AM
I have an image linked and when ONMOUSEOVER, it will change to a different one.
The initial image shows up, but after I hover the mouse, the IE x appears.
I move the mouse away, but the x remains.
Here is the code I am currently using. Currently I have no host, so is it because it is only on the PC?




<a href="C:\Documents and Settings\Omnius\Desktop\system.html"
onMouseOver="document.image1.src='C:\Documents and Settings\Omnius\Desktop\System\onsystem.gif'"
onMouseOut="document.image1.src='C:\Documents and Settings\Omnius\Desktop\System\nmsystem.gif'">

<img src="C:\Documents and Settings\Omnius\Desktop\System\nmsystem.gif" name="image1">
</a>

Thanks

coothead
08-03-2005, 12:17 PM
Hi there CrestDelegate,

and a warm welcome to these forums. :)

Try it like this...
<a href="file://C:/Documents and Settings/Timothy/Desktop/system.html">
<img src="file:///C:/Documents and Settings/Timothy/Desktop/System/nmsystem.gif"
onmouseover="this.src='file:///C:/Documents and Settings/Omnius/Desktop/System/onsystem.gif'"
onmouseout="this.src='file:///C:/Documents and Settings/Omnius/Desktop/System/nmsystem.gif'"
border="0" alt="">
</a>

CrestDelegate
08-03-2005, 12:30 PM
Thank you very much coothead :). It works woot!

coothead
08-03-2005, 12:54 PM
No problem, you're welcome. :D