Reece.c Posted October 8, 2010 Report Share Posted October 8, 2010 just wondering can anyone spot an error in this script?<html><title>http//:www.Blogtube.com.au</title><body bgcolor="white" text="black"><img src="Blogtube.jpg"><br /><a href="index.html" onmouseover="document.Home.src='Home(RO).jpg'" onmouseout="document.Home.src='Home.jpg'"><img src="Home.jpg" width="150" height="30" border="0" name="home link" alt="home link"/></a><a href="HelpDesk.html" onmouseover="document.Help.src='Help desk(RO).jpg'" onmouseout="document.Help.src='Help desk.jpg'"><img src="Help desk.jpg" width="150" height="30" border="0" name="Help Desk link" alt="Help Desk link"/></a><hr /></body></html>have no idea why the rollovers are not working >_< Quote Link to comment Share on other sites More sharing options...
andrew2007 Posted October 8, 2010 Report Share Posted October 8, 2010 If my memory serves me right, it's not working as your referencing id's that don't exist in the javascript, e.g document.Home.src='Home(RO).jpg'There's no element with an ID of Home.Try adding id="home"to your image and see how it works Quote Link to comment Share on other sites More sharing options...
Reece.c Posted October 8, 2010 Author Report Share Posted October 8, 2010 thanks andrewI tried it but i dosent work but i had it as something else it dosent work. All the other ones work though. Can anyone else find the error? Quote Link to comment Share on other sites More sharing options...
andrew2007 Posted October 8, 2010 Report Share Posted October 8, 2010 You can do this with CSS which is a much cleaner and cross browser solution,check these out for starters:http://scriptplayground.com/tutorials/css/CSS-Rollover-Menu/http://www.elated.com/articles/css-rollover-buttons/ Quote Link to comment Share on other sites More sharing options...