Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Bare-bones rollover


tedster - 10:20 pm on Feb 15, 2002 (gmt 0)


<img name="bob" src="bob.gif" onMouseover="over(this)">

I like the idea of wrapping the .src change into a function. When there's lots of rollovers, that eliminates some decent file size.

Note: your code above works fine for Explorer, but other browsers don't all support an onMouseOver event handler unless it's inside an anchor tag.


Thread source:: http://www.webmasterworld.com/javascript/46.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com