Spectacular Free Slide Show
MP3 Sound Streamer
Email Link Encoder
Stream Website Audio
Cool Free Text Scroller
CodeLifter.com
S
oftware & S
cripts by CodeBrain.com
Home
JavaScripts
PopUp Maker
-
po
pup wind
ows
CodeLifter 5
-
source viewer
ScrollBar Styler
-
color scrol
lbars
Flash Fixer
-
rem
ove al
erts
Roll-Over Maker
-
image roll-overs
Link Cloaker 5
-
enc
rypt links
Site Capture 3
-
hidden frames
CHMOD 2 Utility
-
chmod utility
BlackBird 3.0
-
browser shell
Zoom 1.0
-
magnifier
MicroTicker.com
-
text scroller
CodeBrain.com
-
j
ava app
lets
D3Q.com
-
xp icon control
BrainCode.com
-
j
ava app
lets
MailToProtector
-
protect email
Java Applets
Perl Scripts
Affiliate Program
Index
JavaScript Easy Instant Interactive Menu Links
Fast, Easy, Cool Menus
Index
Thing One
Thing Two
Thing Three
Thing Four
Thing Five
Thing Six
Click
here
to select the code in the window below.
Use Ctrl+C to copy it to your clipboard.
============================================================ Script: Instant Interactive Menu Links Script Functions: Creates links with over- and under-lines that move from side to side on mouseOver; features: - hot color settable - cold color settable - degree of motion settable - well-behaved inside of layouts Browsers: IE4-6, NS6 Degrades gracefully in older browsers Author: etLux ============================================================ Step 1. Put the following script in the head of your page. Set the variables for link hot and cold colors and the motion. <script> // ======================================= // (C) 2000 www.CodeLifter.com // http://www.codelifter.com // Free for all users, but leave in this header // Set the coldColor for the link normal color // Set the hotColor for the link mouseOver color // Set the motionPix for how many pixels to move var coldColor = "#FF0000" var hotColor = "#00FF00" var motionPix = "7" // do not edit below this line // ====================================== var a='' if (document.all || document.getElementById){ document.write(a) } </script> ============================================================ Step 2. To attach the interactive motion to any link, all you need to do is insert a class="InstantLink" into the
. For example:
click
Other than that, just build your horizontal or vertical menu or link list as you normally would. (You can also use this for in-line links, too, of course.) Many scripts of this kind 'blow the layout'. However, in this script, because the padding is switched back and forth from the beginning to the end of the text string when the mouse moves on and off the link, your overall layout should remain static and well behaved. Be certain, however, to leave adequate width! If you make a table containing a list of links, for instance, that is too narrow for the width of the strings, you may see irregular results. ============================================================ Sample Code... Here's the actual code from our page (above) showing this technique used inside a couple of nested tables along with some image spacers to dress out the layout.
Thing One
Thing Two
Thing Three
Thing Four
Thing Five
Thing Six
============================================================
Get The Code!
CodeLifter is a
CodeBrain.com
Sister Site
© 1995-2008 OEC Corp & CodeLifter.com
CodeLifter™ & CodeBrain™
Legal Notices
CodeBrain InterNET Group
BrainCode.com
CodeFoot.com
CodeBelly.com
D3Q.com
etLux.com
FFFast.com
IEFix.com
PopUpWorks.com
MicroTicker.com
DavidSosnowski.com
OECCorp.com
MailToProtector.com
CodeBrain.com
Free MP3
Downloads
Contemporary classical music, completely free.
.