foolpot2001菜单

<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 οnmοusedοwn="down=true;divleft=event.clientX-parseInt(plane.style.left);divtop=event.clientY-parseInt(plane.style.top)" οnmοuseup="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" οnmοuseοver="menuin();init()" οnmοuseοut="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)" οnmοuseοver="this.className='over';menuin()" οnmοuseοut="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 οnmοuseοver="this.className='over';menuin()"
οnmοuseοut="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 οnmοuseοver="this.className='over';menuin()"
οnmοuseοut="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 οnmοuseοver="this.className='over';menuin()"
οnmοuseοut="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 οnmοuseοver="this.className='over';menuin()" οnmοuseοut="this.className='none';menuout()">菜单项五</div>

</div>
<script language="vbs">
dim down,divleft,divtop,timelinestart,timelinestop,tidone,tidtwo,tidtree
down=false
timelinestart=0
timelinestop=0
sub document_onmousemove
if down then
plane.style.left=window.event.clientx-divleft
plane.style.top=window.event.clienty-divtop
end if
lt.value=divleft
tp.value=divtop
tx.value=window.event.clientx
ty.value=window.event.clienty
end sub
sub document_ondargstart
window.event.returnvalue=false
end sub
function menuin()
cleartimeout(tidtree)
end function
function menuout()
tidtree=settimeout("outit()",200)
end function
function init()
if timelinestart<>5 then
cleartimeout(tidtwo)
item1.style.pixelLeft=item1.style.pixelLeft-20
item1.filters.alpha.opacity=item1.filters.alpha.opacity+20
item2.style.pixelLeft=item2.style.pixelLeft-20-4
item2.filters.alpha.opacity=item2.filters.alpha.opacity+20
item3.style.pixelLeft=item3.style.pixelLeft-20-8
item3.filters.alpha.opacity=item3.filters.alpha.opacity+20
item4.style.pixelLeft=item4.style.pixelLeft-20-12
item4.filters.alpha.opacity=item4.filters.alpha.opacity+20
item5.style.pixelLeft=item5.style.pixelLeft-20-16
item5.filters.alpha.opacity=item5.filters.alpha.opacity+20
timelinestart=timelinestart+1
else
cleartimeout(tidone)
end if
tidone=settimeout("init()",5)
end function
function outit()
if timelinestart<>0 then
cleartimeout(tidone)
item1.style.pixelLeft=item1.style.pixelLeft-5
item1.filters.alpha.opacity=item1.filters.alpha.opacity-20
item2.style.pixelLeft=item2.style.pixelLeft-6-4
item2.filters.alpha.opacity=item2.filters.alpha.opacity-20
item3.style.pixelLeft=item3.style.pixelLeft-9-8
item3.filters.alpha.opacity=item3.filters.alpha.opacity-20
item4.style.pixelLeft=item4.style.pixelLeft-13-12
item4.filters.alpha.opacity=item4.filters.alpha.opacity-20
item5.style.pixelLeft=item5.style.pixelLeft-15-16
item5.filters.alpha.opacity=item5.filters.alpha.opacity-20
timelinestart=timelinestart-1
else
cleartimeout(tidtwo)
item1.style.pixelLeft=250
item2.style.pixelLeft=270
item3.style.pixelLeft=290
item4.style.pixelLeft=310
item5.style.pixelLeft=330
end if
tidtwo=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>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值