p.davies
05-24-2006, 01:25 PM
Hi,
I am new to javascript and am cobbing together a webpage for my own use.
I have a hidden div for a submenu which is loaded by
<a href="javascript:;" onMouseover="document.getElementById('menunews').style.visibility='visible'" >
I then used
onmouseout="el=this;setTimeout('el.style.visibility=\'hidden\'',1500)"
within the DIV so that it would disapear if hovered over. However, I realised quickly if you don't hover over it, it's stuck there.
So is there a way to modify the <a> link to have the onmouseout within it?
Any and all help would be much appreciated.
P.
I am new to javascript and am cobbing together a webpage for my own use.
I have a hidden div for a submenu which is loaded by
<a href="javascript:;" onMouseover="document.getElementById('menunews').style.visibility='visible'" >
I then used
onmouseout="el=this;setTimeout('el.style.visibility=\'hidden\'',1500)"
within the DIV so that it would disapear if hovered over. However, I realised quickly if you don't hover over it, it's stuck there.
So is there a way to modify the <a> link to have the onmouseout within it?
Any and all help would be much appreciated.
P.