foolpot2001菜单
2007-11-27 17:19:40 来源:WEB开发网核心提示:<html><head><title>foolpot2001菜单</title><style>body,td,a {font-size:9pt;color:black}.none{border:black 1px solid;ba
<html><head><title>foolpot2001菜单</title><style>body,td,a {font-size:9pt;color:black}.none{border:black 1px solid;background:D9D9D9;padding-top:2}.over {border:black 1px solid;background:707888;color:white;padding-top:2}</style></head><body><div style=position:absolute; left: 100; top: 100;cursor: hand ID=plane onmousedown=down=true;divleft=event.clientX-parseInt(plane.style.left);divtop=event.clientY-parseInt(plane.style.top) onmouseup=down=false><div align=center style=position:absolute; left:150px; top:33px; width:100px; height:19px; z-index:1;color:white;background:707888;cursor:move class=none onmouseover=menuin();init() onmouseout=menuout()>可拖动的菜单</div><div align=center id=item1 style=position:absolute; left:250px; top:55px; width:99px; height:19px; z-index:2; filter:alpha(opacity=0) onmouseover=this.className=over;menuin() onmouseout=this.className=none;menuout() class=none>菜单项一</div><div align=center id=item2 style=position:absolute; left:270px; top:77px; width:99px; height:19px; z-index:3;filter:alpha(opacity=0)class=none onmouseover=this.className=over;menuin()onmouseout=this.className=none;menuout()>菜单项二</div> <div align=center id=item3 style=position:absolute; left:290px; top:99px; width:99px; height:19px; z-index:4; filter:alpha(opacity=0)class=none onmouseover=this.className=over;menuin()onmouseout=this.className=none;menuout()>菜单项三</div><div align=center id=item4 style=position:absolute; left:310px; top:121px; width:99px; height:19px; z-index:5;filter:alpha(opacity=0)class=none onmouseover=this.className=over;menuin()onmouseout=this.className=none;menuout()>菜单项四</div> <div align=center id=item5 style=position:absolute; left:330px; top:143px; width:99px; height:19px; z-index:6; filter:alpha(opacity=0) class=none onmouseover=this.className=over;menuin() onmouseout=this.className=none;menuout()>菜单项五</div></div><script language=vbs>dim down,divleft,divtop,timelinestart,timelinestop,tidone,tidtwo,tidtreedown=falsetimelinestart=0timelinestop=0sub document_onmousemoveif down thenplane.style.left=window.event.clientx-divleftplane.style.top=window.event.clienty-divtopend iflt.value=divlefttp.value=divtoptx.value=window.event.clientxty.value=window.event.clientyend subsub document_ondargstartwindow.event.returnvalue=falseend subfunction menuin()cleartimeout(tidtree)end functionfunction menuout()tidtree=settimeout(outit(),200)end functionfunction init()if timelinestart<>5 thencleartimeout(tidtwo)item1.style.pixelLeft=item1.style.pixelLeft-20item1.filters.alpha.opacity=item1.filters.alpha.opacity+20item2.style.pixelLeft=item2.style.pixelLeft-20-4item2.filters.alpha.opacity=item2.filters.alpha.opacity+20item3.style.pixelLeft=item3.style.pixelLeft-20-8item3.filters.alpha.opacity=item3.filters.alpha.opacity+20item4.style.pixelLeft=item4.style.pixelLeft-20-12item4.filters.alpha.opacity=item4.filters.alpha.opacity+20item5.style.pixelLeft=item5.style.pixelLeft-20-16item5.filters.alpha.opacity=item5.filters.alpha.opacity+20timelinestart=timelinestart+1elsecleartimeout(tidone)end iftidone=settimeout(init(),5)end functionfunction outit()if timelinestart<>0 thencleartimeout(tidone)item1.style.pixelLeft=item1.style.pixelLeft-5item1.filters.alpha.opacity=item1.filters.alpha.opacity-20item2.style.pixelLeft=item2.style.pixelLeft-6-4item2.filters.alpha.opacity=item2.filters.alpha.opacity-20item3.style.pixelLeft=item3.style.pixelLeft-9-8item3.filters.alpha.opacity=item3.filters.alpha.opacity-20item4.style.pixelLeft=item4.style.pixelLeft-13-12item4.filters.alpha.opacity=item4.filters.alpha.opacity-20item5.style.pixelLeft=item5.style.pixelLeft-15-16item5.filters.alpha.opacity=item5.filters.alpha.opacity-20timelinestart=timelinestart-1elsecleartimeout(tidtwo)item1.style.pixelLeft=250item2.style.pixelLeft=270item3.style.pixelLeft=290item4.style.pixelLeft=310item5.style.pixelLeft=330end iftidtwo=settimeout(outit(),1)end function</script>divleft:<input id=lt> divtop:<input id=tp><br>clientx:<input id=tx> clienty:<input id=ty></body></html><html><script language=JavaScript> </script></html><html></html>
- ››菜单管理
- ››菜单程序
- ››foolpot2001菜单
- ››菜单文件的类型、结构和使用
- ››菜单项的动态装入
更多精彩
赞助商链接