twilitegxa Posted July 3, 2009 Share Posted July 3, 2009 On my page, the secondary navigation (Web Site, Mockup, Flash, Print, Logos), and the View and up arrow buttons are supposed to have a rollover feature that changes to a darker version to let people know the button is clickable, but for some reason they have stopped working. Did I accidentally remove the code that allows this feature? Here is the page: http://webdesignsbyliz.com/portfolio.html Quote Link to comment Share on other sites More sharing options...
haku Posted July 4, 2009 Share Posted July 4, 2009 Are you trying to do javascript or CSS rollovers? If it's css, you can't do it with image tags, you have to set a background image to an element, then swap out the background image on hover. If it's javascript, switch to CSS Quote Link to comment Share on other sites More sharing options...
twilitegxa Posted July 4, 2009 Author Share Posted July 4, 2009 I figured it out. I forgot to import a JavaScript file. Yes, I was using JavaScript. :-) Can someone tell me why my backtotop isn't working? Here is my script for it: <a href="#" onclick="backToTop(); return false;"><img src="uparrow.png" alt="Top" class="rollover top" /></a> Quote Link to comment Share on other sites More sharing options...
twilitegxa Posted July 4, 2009 Author Share Posted July 4, 2009 I reposted it in the JavaScript section. Quote Link to comment Share on other sites More sharing options...
haku Posted July 5, 2009 Share Posted July 5, 2009 You should use CSS for rollovers rather than javascript, as it's more consistent, because many people have javascript turned off. It's also less intensive on the processor for the page. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.