View Single Post
  #3 (permalink)  
Old 07-15-2008, 11:15 AM
curtiss's Avatar
curtiss curtiss is offline
Moderator
 
Join Date: May 2003
Posts: 1,468
The way you have it set up right now, you don't need javascript to accomplish what you want. You just need CSS.

Look into the :hover property.

Code:
#menu .about {
width: 161px;
height: 34px;
background: url(images/About.png) no-repeat;
left: 0px;
top: 0px;
}

#menu .about span {
width: 161px;
height: 34px;
background: url(images/AboutOver.png) no-repeat;
left: 0px;
top: 0px;
}
Would become:
Code:
#menu a.about {
width: 161px;
height: 34px;
left: 0px;
top: 0px;
}

#menu a.about:link, #menu a.about:visited {
background: url(images/About.png) no-repeat;
}

#menu a.about:hover {
background: url(images/AboutOver.png) no-repeat;
}
__________________
I hate Internet Explorer! Anyone with me?
Reply With Quote