animated rollover buttons
 

SimplytheBest
Scripts

ASP scripts
PERL scripts
PHP scripts
JavaScripts & Ajax
Snippets
Online scripts

Ajax, DHTML
& JavaScripts

Animation
Background
Bookmarks
Buttons
Calculators
Cookies
Data handling
E-mail
Enhancements
Forms
Image rotation
Menus
Messages
Miscellaneous
Music
Password protection
Redirection
Scrollers
Tables
Time & date
Windows

Publishers
Add script
Account login
Publisher list



 

Home > Scripts > DHTML scripts & JavaScripts > Buttons > Animated rollover buttons

 

Animated rollover buttons script

AUTHOR: Submitted by George Jensen
TYPE: Freeware
BROWSERS:
IE 4+, IE 5+, IE 6+, NS 4+, NS 6+

A dynamic rollover script with animated buttons.


EXAMPLE


1)
Insert these two scripts in the <HEAD> section of the page.

then copy (CTRL-C) & paste (CTRL-V)

2) Insert the following HTML code in the <BODY> section where you want the rollover buttons to appear in the page.

then copy (CTRL-C) & paste (CTRL-V)

3) Ensure that the images that initially load and are replaced by others when rollover occurs, are named the same in the HTML code as follows:

<a href="http://planmagic.com/business_plan.html" onmouseout="off('image1');" onmouseover="on('image1');">
<img border="0" name="image1" src="images/image1_default.gif"></a>

<a href="http://planmagic.com/marketing_plan.html" onmouseout="off('image2');" onmouseover="on('image2');"><img border="0" name="image2" src="images/image2_default.gif"></a>

and in the script section:

/var imgslist = new Array(
"images/image1_over.gif",
"images/image2_over.gif",

4) You can download this ZIP file with the images we made to help you with the animated rollover buttons, unzip them in the appropriate directory.

A nice rollover script, ain't it?


[BACK] [TOP]

 


Copyright © 1997-2009 SimplytheBest Inc. Terms of Use and Legal Disclaimer.
All copyrights are acknowledged. All rights reserved.