| Site Map | WizTools.org | jCraze Blog |
![]() |
Subhash's Guide: Image Rollover ScriptYou would have come across a lot of image links that change when you bring your mouse over them. We will also create one such script. The default picture would be 'a.jpg'. When the mouse is taken over it, 'b.jpg' should be displayed. The necessary code is:
In the above script the <img> tag is a object. This object is placed within the <a> tags. When the user brings his mouse over the <img> object placed within <a>, the 'onMouseOver' event is triggered. The image object is referred by its name 'image1' (names are case-sensitive).
In the <script> tag a new image object is created when we specify:
Now when the user's mouse comes over the <img> enclosed between the <a> tags, the image path of the 'image1' object is changed to that of the 'image1on' object: Do try out Subhash's Roll Maker. This tool enables one to create JavaScript rollovers instantly. |
Sign Guestbook
|
Who is Subhash?
The contents of this site are copyright© 2000-2008, indiWiz.com. All Rights Reserved.