hvad er der galt her?
jeg har denne dropdown menu, men det virker ikke helt som det skal.onmouseover virker ok, men menuen forsvinder når jeg flytter musen, inden jeg kommer ned på selve menuen.
håber der er nogen der kan hjælpe!!
<HEAD>
<script language=\"JavaScript1.2\">
var menu1=new Array()
menu1[0]=\'<a href=http://>Oversigt</a><br>\'
menu1[1]=\'<a href=http://>Oversigt1</a><br>\'
menu1[2]=\'<a href=http://>Oversigt2</a><br>\'
menu1[3]=\'<a href=http://>Oversigt3</a><br>\'
</script>
<style>
<!--
.iewrap1{
position:relative;
height:30px;
}
.iewrap2{
position:relative;
}
#dropmenu0{
visibility:hide;
z-index:100;
}
-->
</style>
</HEAD>
<BODY><table>
<script language=\"JavaScript1.2\">
var zindex=100
function dropit2(whichone){
if (window.themenu&&themenu.id!=whichone.id)
themenu.style.visibility=\"hidden\"
themenu=whichone
if (document.all){
themenu.style.left=document.body.scrollLeft+event.clientX-event.offsetX
themenu.style.top=document.body.scrollTop+event.clientY-event.offsetY+18
if (themenu.style.visibility==\"hidden\"){
themenu.style.visibility=\"visible\"
themenu.style.zIndex=zindex++
}
else{
hidemenu()
}
}
}
function dropit(e,whichone){
if (window.themenu&&themenu.id!=eval(whichone).id)
themenu.visibility=\"hide\"
themenu=eval(whichone)
if (themenu.visibility==\"hide\")
themenu.visibility=\"show\"
else
themenu.visibility=\"hide\"
themenu.zIndex++
themenu.left=e.pageX-e.layerX
themenu.top=e.pageY-e.layerY+19
return false
}
function hidemenu(whichone){
if (window.themenu)
themenu.style.visibility=\"hidden\"
}
function hidemenu2(){
themenu.visibility=\"hide\"
}
if (document.all)
document.body.onmouseout=hidemenu
</script>
<td width=\"250\" align=\"left\" valign=\"top\">
<ilayer height=35px>
<layer visibility=show>
<span class=iewrap1>
<span class=iewrap2 onmouseover=\"dropit2(dropmenu0);event.cancelBubble=true;return false\"><font face=Verdana><b><a href=\"http://localhost/#\" onmouseover=\"if(document.layers) return dropit(event, \'document.dropmenu0\')\"><font color=\"#FFFF00\">Forum</a></b></font>
</span>
</span>
</layer>
</ilayer>
</td></table>
<div id=dropmenu0 style=\"position:absolute;left:0;top:0;layer-background-color:CCCCFF;background-color:CCCCFF;width:120;visibility:hidden;border:3px solid black;padding:0px\">
<script language=\"JavaScript1.2\">
if (document.all)
dropmenu0.style.padding=\"4px\"
for (i=0;i<menu1.length;i++)
document.write(menu1[i])
</script>
</div>
<script language=\"JavaScript1.2\">
if (document.layers){
document.dropmenu0.captureEvents(Event.onmouseover)
document.dropmenu0.onmouseout=hidemenu2
}
</script>
</BODY>
</HTML>