[thelist] javascript:// :is it necessary?

The Optimizer chrism at puffofsmoke.net
Thu Jun 28 10:48:45 CDT 2001


> What is wrong with using the following instead of JavaScript for
> rollovers?
> Does this not work on most browsers?

It works (and it is still javascript), but the image won't be cached so it
will download onmouseover; temporarily not displaying the rollover state.

> <a href="products.htm" target="active"
> onmouseover="images['imagename].src="
> Button2.jpg"" onmouseout="images['imagename'].src="Button1.jpg"">
> <img name="imagename" src="Button1.jpg" border="0" width="32" height="32">
> </a>

Regards

Chris Marsh





More information about the thelist mailing list