Computing.Net > Forums > Web Development > CSS mouseover?

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

CSS mouseover?

Reply to Message Icon

Original Message
Name: azzhole
Date: September 14, 2006 at 12:30:11 Pacific
Subject: CSS mouseover?
OS: Windows XP Pro
CPU/Ram: 64 3200 skt754, 768mb PC3
Model/Manufacturer: Aries
Comment:

can you tell me what I have to put instead of

to make it show butt_link2.gif as normal and butt_link3.gif when the mouse hovers over it?
Thanks, as this is really irritating me now, it's driving me nuts.

Aaron

Never buy from Savastore or Watford Electronics!!!


Report Offensive Message For Removal


Response Number 1
Name: Michael J (by mjdamato)
Date: September 14, 2006 at 14:30:02 Pacific
Reply: (edit)

There are litterally hunders of free examples on the net. Here is a VERY rudimentary example that you can build upon.

[script language="javascript"]
function mouse(state) {
if (document.images) {
if (state=='over') {
document.getElementById('buttLinkID').src = "butt_link3.gif";
} else {
document.getElementById('buttLinkID').src = "butt_link2.gif";
}
}
}
[/script]

[A HREF="whatever.html" onMouseOver="mouse('over');" onMouseOut="mouse('out');"]
[IMG src="butt_link2.gif" NAME="home" id="buttLinkID"][/A]
Michael J


Report Offensive Follow Up For Removal

Response Number 2
Name: bakss
Date: September 14, 2006 at 15:56:00 Pacific
Reply: (edit)

check it here http://www.hotscripts.com/JavaScrip... more examples


Report Offensive Follow Up For Removal

Response Number 3
Name: azzhole
Date: September 17, 2006 at 07:32:33 Pacific
Reply: (edit)

Thanks very much :D


Never buy from Savastore or Watford Electronics!!!


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 5 Days.
Discuss in The Lounge
Poll History




Data Recovery Software