单击链接显示菜单
.iewrap1{height:30px;}
var index=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+5
themenu.style.top=document.body.scrollTop+event.clientY-event.offsetY+10
if (themenu.style.visibility=="hidden"){
themenu.style.visibility="visible"
themenu.style.index=index++}
else{
hidemenu()}}}
[JavaScript中文网]
var menu=new Array()
menu[0]='JavaScript课程'
menu[1]='JavaScript软件'
menu[2]='JavaScript论坛'
if (document.all)
dropmenu0.style.padding="4px"
for (i=0;i document.write(menu[i])