OutFront Forums
     Home    Register     Search      Help      Login    

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

Sponsors
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

 

Rollovers in JavaScript

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Microsoft FrontPage Help >> Rollovers in JavaScript
Page: [1]
 
paul rayner

 

Posts: 232
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?

abbeyvet

 

Posts: 5094
From: Kilkenny Ireland
Status: offline

 
RE: Rollovers in JavaScript - 3/15/2001 20:55:00   
Take a look at this script generator which will make the code for any number of buttons: http://www.builder.com/Programming/Kahn/012898/

------------------
Katherine

InKK Design
LinKKs - Kilkenny's Online Magazine


-*-*-*-*-*-*-*-*-*-*
"Dogs have owners, cats have staff!"


(in reply to paul rayner)
MysticNight

 

Posts: 273
Status: offline

 
RE: Rollovers in JavaScript - 3/15/2001 20:53:00   
Thanks for the link abbey!

(in reply to paul rayner)
Page:   [1]

All Forums >> Web Development >> Microsoft FrontPage Help >> Rollovers in JavaScript
Page: [1]
Jump to: 1





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