Jump to content

Java Rollovers Not Working...


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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...