Metachecker.net
|
FontsMadeEasy.com
|
RankChecker.net
Learn Java Script Today
|
Over 5000 Free Fonts
|
Tutorials
|
Javascript Forum
|
Other Javascript Resources
|
Cheat Sheet
JavaScript Basics
Inserting Javascript
Complete Tutorial
Advance DHTML Tutorial
Script archive
Advanced Tutorials
Alert Scripts
Animation
Audio
Background Effects
Banner Ads
Browser Window
Buttons
Button Forms
Calculcators
Calendars
Clocks & Dates
Cookies
Cursor Effects
DHMTL Games
DHTML Miscellaneous
Equivalents
Forms
Games
IE4+ Scripts
IE5+ Scripts
Image Effects
Image Miscellaneous
Links & Buttons
Math Related
Messages Miscellaneous
Miscellaneous
Mouse Tricks
Navigation
Page Details
Password Protection
Pulldown Menus
Random Stuff
Scrolling
Status Bar
Text Animation
User Detail
User Info
Window Control
Rollover background-color
A script that makes any form button change background color as the mouse moves over it.
Insert into <HEAD>
<style> <!-- /*change the color name below to the color you want initially applied to the button. ie:blue*/ .initial2{font-weight:bold;background-color:lime} //--> </style> <script> <!-- function change(color){ var el=event.srcElement if (el.tagName=="INPUT"&&el.type=="button") event.srcElement.style.backgroundColor=color } function jumpto2(url){ window.location=url } //--> </script>
Insert into <BODY>
<form onMouseover="change('yellow')" onMouseout="change('lime')"> <input type="button" value="Yahoo " class="initial2" onClick="jumpto2('http://yahoo.com')"> <input type="button" value="Geocities " class="initial2" onClick="jumpto2('http://Geocities.com')"> <input type="button" value="ABC News " class="initial2" onClick="jumpto2('http://abcnews.com')"> </form>
Other Options
To add more form buttons, simply add more of the following inside the <form> tag: <input type="button" value="Yahoo " class="initial2" onClick="jumpto2('http://yahoo.com')"> With the parts in red representing the parts you should change to your own.