i have a div tag which has a id and the style attributes for it are as below. Now i 'm running a for loop to write an array of elements on the page and putting each element in a table so that i can have hover effect on each one of them as seen below.
Now my problem is that onmouseout i want the layer to dissapear. i did this but as soon as i move over the elements the layer dissapears please help
<div id=dropmenu0 style="position:absolute;left:100;top:100;background-color:#CCCCCC;width:150;visibility:hidden;border:1px solid black ;padding:0px" onmouseover= some hide function>
<script language="JavaScript1.2">
if (document.all)
dropmenu0.style.padding="1px"
estr='<table border=0 width="150" bordercolor=black cellpadding="1" cellspacing="0">'
estr+='<tr><td align="left" class=menu onmouseover=this.style.background="#FF0000" onmouseout=this.style.background="#CCCCCC">'
for (i=0;i<menu1.length;i++)
document.write(estr + menu1+'</td></tr></table>')
</script>
</div>
Now my problem is that onmouseout i want the layer to dissapear. i did this but as soon as i move over the elements the layer dissapears please help
<div id=dropmenu0 style="position:absolute;left:100;top:100;background-color:#CCCCCC;width:150;visibility:hidden;border:1px solid black ;padding:0px" onmouseover= some hide function>
<script language="JavaScript1.2">
if (document.all)
dropmenu0.style.padding="1px"
estr='<table border=0 width="150" bordercolor=black cellpadding="1" cellspacing="0">'
estr+='<tr><td align="left" class=menu onmouseover=this.style.background="#FF0000" onmouseout=this.style.background="#CCCCCC">'
for (i=0;i<menu1.length;i++)
document.write(estr + menu1+'</td></tr></table>')
</script>
</div>