function menuhover(menu)
{
var list=document.getElementById(menu).getElementsByTagName("li");
for(var i=0;i<list.length;i++)
{
list[i].onmouseover=function()
{
this.className=this.className.replace("","hover");
}
list[i].onmouseout=function()
{
this.className=this.className.replace("hover","");
}
}
}
这是一段导航菜单的二级菜单弹出脚步,我想使鼠标移开的时候,收缩能够延迟一下,弹出不用,不知道怎么加。
谢谢各位有心人哈!jquery的方法不用,谢谢