Jump to content

Java Rollovers Not Working...


mboehler3
 Share

Recommended Posts

I am an entry-level newbie to JavaScript, mainly I only use it for image rollovers. I am revamping my resume website, and having trouble getting these rollovers to work.The page is here: My Resume SiteI am pre-loading the buttons, as seen in this script here: http://mattboehlerresume.com/buttons.phpAnd here is the coding for the rollovers: http://mattboehlerresume.com/menu.phpI've used this coding before, and now is the first time I've had a problem. Will someone please take a moment to look at my coding and give me some advice?Thanks!

Link to comment
Share on other sites

You can do image rollovers using CSS, which means they work if someone has JavaScript turned off (more common than someone having CSS turned off). You just make the images backgrounds for links and then use the a:hover selector, like this:a:link, a:visited {background-image: url(whatever.gif);}a:hover,a:active {background-image:url(somethingElse.gif);}

Edited by chibineku
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...