lilman Posted February 2, 2007 Share Posted February 2, 2007 I want to learn how to create a drop down box when the mouse goes over text. I also would like to learn how to change the background to a <td> when a mouse goes over it. Someone here said the best way to learn is from Tutorials online as opposed to books, so I was wondering if anyone knew if any good tutorials that would show me how to do this. Thank you Quote Link to comment Share on other sites More sharing options...
mainewoods Posted February 2, 2007 Share Posted February 2, 2007 to change the background of a td: <td id="myid"> <a href="#" onmouseover="document.getElementById('myid').style.backgroundColor = '#cccccc';">Change background color</a> </td> --changes to a gray background color on mouseover, use a similiar method with onmouseout. Quote Link to comment Share on other sites More sharing options...
worldworld Posted February 2, 2007 Share Posted February 2, 2007 Well i think no need of ajax there. You can do it with normal Javascripting.... Quote Link to comment Share on other sites More sharing options...
artacus Posted February 2, 2007 Share Posted February 2, 2007 Well i think no need of ajax there. You can do it with normal Javascripting.... I'm just glad it wasn't in the mysql forum or something As for the dropdown, if you want a select box, you'll have to put it in a div and alter its visiblilty. If you want just navigational links you can do that w/o any javascript by using css on <UL> elements. 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.