Back to JS main page

BY:Mattias Sjoberg...Homepage
DATE:1997-07-02
UPDATED:1997-11-22


COMMENTS: This is yet another image switch, you might think... Even though I've got a copple of image switch scripts I still get questions about how to implement them, so this is what I consider to be a script that is easy to add, you won't have to change anyhting in the script to add new pictures just change the link in the bold parts. Another feature is that I use object detection instead of a browser detection. The advantage with this is that you won't have to change the code if a new browser that can handle image switches enters the market.

<A HREF="jv_main.html" onMouseOver="switchit(document.main, 'main_on.gif')" onMouseOut="switchit(document.main, 'main_off.gif')"> <IMG SRC="main_off.gif" NAME="main" ALIGN=MIDDLE WIDTH=50 HEIGHT=45 BORDER=0>
Main Page
If you want this script just choose "Save Frame As..." (in Netscape) when you have the focus on the frame.

URL: http://www.oocities.org/SiliconValley/7116/jv_is6.html