|
| |
|
|
paul rayner
Posts: 205 Joined: 3/15/2001 From: yeppoon, qld, aus Status: offline
|
Rollovers in JavaScript - 3/15/2001 20:36:00
I saw this code in a magazine. Looked easy enough so Iadapted it. Created 2 buttons with different colours and saved them as Welcome-on.gif and Welcome-off.gif. Here's the code - <script language="JavaScript1.1"><!-- imageWelcomeOn = new Image() imageWelcomeOn.src = 'Welcome-off.gif'; imageWelcomeOff = new Image() imageWelcomeOff.src = 'Welcome-on.gif'; function on WelcomeOver() { document.welcome.src=imageWelcomeOn.src; } function onWelcomeOut() { document.welcome.src=imageWelcomeOff.src; } //--></script> <A onmouseover=onWelcomeOver(this) onmouseout=onWelcomeOut(this) href="welcome.htm"><IMG height=32 SRC="Welcome-off.gif" width=188 BORDER=0 name=Welcome></a>It displays, but no roll-over. Can anyone help me with an answer pls?
|
|
|
|
MysticNight
Posts: 273 Status: offline
|
RE: Rollovers in JavaScript - 3/15/2001 20:53:00
Thanks for the link abbey!
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|