mboehler3 Posted June 13, 2009 Share Posted June 13, 2009 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 More sharing options...
justsomeguy Posted June 13, 2009 Share Posted June 13, 2009 It's not going to work standalone on menu.php, that file needs to be included in another file that has all of the other HTML and Javascript in it. Link to comment Share on other sites More sharing options...
chibineku Posted June 13, 2009 Share Posted June 13, 2009 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);} Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.