Hi.
I have an image button on my site which im trying to manipulate so that when the mouse runs over it a box will appear with two links in it. It is basically a select menu that drops down from the image. If anyone knows a better way to achieve this than my current approach please let me know. I have created an onMouseOver event which will show and hide a <div> where my 2 hyperlinks are stored. It works fine but i need to put a 2 or 3 second timer on it so that it doesnt disappear as soon as the user runs the mouse away from the button. Can anyone show me how id do this please?
this is what i have so far:
This exact page of code can be viewed at www.thedoorstop.co.uk/index3.php
HTML Code:
<html>
<head>
<script>
<!--
function describeHowto(){howtoselected.style.visibility='visible'; return true; }
function clean() {howtoselected.style.visibility='hidden'; return true; }
//-->
</script>
</head>
<body>
<a href="howto.php"
onMouseOver="describeHowto();"
onMouseOut="clean();">
<img src="http://www.webmaster-talk.com/images/howto_button_white.gif" width="102" height"25" border="">
</a>
<DIV ID='howtoselected' style='visibility: hidden;' >
<table bordercolor='#B90314' border='1'>
<tr>
<td>
<a href='howtosliding.php'><span id='normal'>Sliding</span></a>
</td>
</tr>
<tr>
<td>
<a href='howtohinged.php'><span id='normal'>Hinged</span></a>
</td>
</tr>
</table>
</DIV>
</body>
</html>
Last edited by hiptobesquare; 02-28-2006 at 09:20 AM..
|