PDA

View Full Version : onMouseOver in NS4


meterlink
06-26-2002, 01:14 PM
Hi,
I need to make a flipping image in NS4 but
without using <a href> link command. It seems that onMouseOver event is not working
in <img> tag. What is the possible solution ?
Could you please help me with this.

Thank you very much

babelfish
06-26-2002, 02:15 PM
<A href="javascript:;" onMouseout="document.imagename.src='images/imageoff.gif'; returnstatus();" onMouseOver="document.imagename.src='images/imageon.gif'"><IMG name="imagename" src="images/imageoff.gif" border="0" ></A>

RoyW
06-26-2002, 02:42 PM
It is possible to have onMouseOver of images in NS4 you just have to install the event handler programatically.

See this thread (http://66.221.73.73/forums/showthread.php3?threadid=8217)

Here is an Online Demo (http://www.javascript-fx.com/post/imgswap/index.html) that works in IE4+, NS4 and NS6 (and I think Opera5)