[Javascript] Mouseover woes

Peter-Paul Koch gassinaumasis at hotmail.com
Wed Jul 31 07:44:44 CDT 2002


>heres a good one that has be slightly stumped. can I do a mouse over 
>without absolutly referencing the image???

Only if you don't mind that the script will only work in the highest 
browsers (and *not* in Netscape 4).

>eg
>
><td class='box'><a href='test.asp'><img src='../images/bar.gif'></a></td>"
>
>this is all I have I want to to the equivivent of
><td class='box'><a href='test.asp'><img src='../images/bar.gif'
>onmouseover='document.this.image.src=../images/test.gif'; return
>true;'></a></td>"

this.src, not document.this.image.src . Otherwise it would work. See also 
http://www.xs4all.nl/~ppk/js/index.html?newmouseover.html for a slightly 
different approach.

ppk

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com




More information about the Javascript mailing list