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 Link to comment https://forums.phpfreaks.com/topic/164713-solved-rollover-not-working/ 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 Link to comment https://forums.phpfreaks.com/topic/164713-solved-rollover-not-working/#findComment-868606 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> Link to comment https://forums.phpfreaks.com/topic/164713-solved-rollover-not-working/#findComment-868651 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. Link to comment https://forums.phpfreaks.com/topic/164713-solved-rollover-not-working/#findComment-868680 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. Link to comment https://forums.phpfreaks.com/topic/164713-solved-rollover-not-working/#findComment-869038 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.