?? menu.js
字號:
document.write("<style>#master{LEFT:-100px;POSITION:absolute;}#menu{LEFT:100px;POSITION:absolute; TOP:30px; Z-INDEX:5}#screen{POSITION:absolute; TOP:31px; Z-INDEX:5}#screenlinks{POSITION:absolute; TOP:31px; VISIBILITY:visible; Z-INDEX:5}</style>")
document.write('<style>#screen{filter:Alpha(Opacity=30)</style>')
var master = new Object("element")
master.curLeft = -100;
master.curTop = 10;
function moveAlong(layerName, paceLeft, paceTop, fromLeft, fromTop){
clearTimeout(eval(layerName).timer)
if(eval(layerName).curLeft != fromLeft){
if((Math.max(eval(layerName).curLeft, fromLeft) - Math.min(eval(layerName).curLeft, fromLeft)) < paceLeft){eval(layerName).curLeft = fromLeft}
else if(eval(layerName).curLeft < fromLeft){eval(layerName).curLeft = eval(layerName).curLeft + paceLeft}
else if(eval(layerName).curLeft > fromLeft){eval(layerName).curLeft = eval(layerName).curLeft - paceLeft}
document.all[layerName].style.left = eval(layerName).curLeft
}
if(eval(layerName).curTop != fromTop){
if((Math.max(eval(layerName).curTop, fromTop) - Math.min(eval(layerName).curTop, fromTop)) < paceTop){eval(layerName).curTop = fromTop}
else if(eval(layerName).curTop < fromTop){eval(layerName).curTop = eval(layerName).curTop + paceTop}
else if(eval(layerName).curTop > fromTop){eval(layerName).curTop = eval(layerName).curTop - paceTop}
document.all[layerName].style.top = eval(layerName).curTop
}
eval(layerName).timer=setTimeout('moveAlong("'+layerName+'",'+paceLeft+','+paceTop+','+fromLeft+','+fromTop+')',30)
}
function setPace(layerName, fromLeft, fromTop, motionSpeed){
eval(layerName).gapLeft = (Math.max(eval(layerName).curLeft, fromLeft) - Math.min(eval(layerName).curLeft, fromLeft))/motionSpeed
eval(layerName).gapTop = (Math.max(eval(layerName).curTop, fromTop) - Math.min(eval(layerName).curTop, fromTop))/motionSpeed
moveAlong(layerName, eval(layerName).gapLeft, eval(layerName).gapTop, fromLeft, fromTop)
}
var expandState = 0
function expand(){
if(expandState == 0){setPace("master", 0, 10, 10);
document.menutop.src = "images/menub.gif"; expandState = 1;}
else{
setPace("master", -100, 10, 10);
document.menutop.src = "images/menu.gif"; expandState = 0;}
}
document.write("<div id=master><div id=menu onmouseover=javascript:expand()><table border=0 cellpadding=0 cellspacing=0 width=18><tbody><tr><td width=100%><img name=menutop src=images/menu.gif></td></tr></tbody></table></div><div id=top><table border=0 cellpadding=0 cellspacing=0 width=100><tbody><tr><td width=100%><img border=0 height=6 src=images/top.gif width=100></td></tr></tbody></table></div><div id=screen onmouseout=javascript:expand()><table border=0 cellpadding=5 cellspacing=0 width=100><tbody><tr><td bgcolor=#336666 width=100%><table bgcolor=#336666 border=0 cellpadding=0 cellspacing=0 width=100% height=213><tbody><tr><td width=100%><table border=0 cellpadding=5 cellspacing=1 width=100%><tbody><tr> <td bgcolor=ecf6f5 width=100%><br><br><br><br><br></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div><div id=screenlinks ><table border=0 cellpadding=6 cellspacing=0 width=100><tbody><tr><td style=FILTER: alpha(opacity=90) width=100%><table bgcolor=336666 border=0 cellpadding=0 cellspacing=0 width=100% ><tbody> <tr><td width=100%><table border=0 cellpadding=6 cellspacing=1 width=100%><tbody><tr><td bgcolor=#ecf6f5 width=100% align=center><font color=999900> <font face=Wingdings>1</font>社區娛樂</font><br>├<a href=shop.asp>社區商店</a><br>├<a href=bank.asp>社區銀行</a><br>├<a href=play.asp>社區賭場</a><br>├<a href=faction.asp>社區幫派</a><br>├<a href=prison.asp>社區監獄</a><br><br><font color=999900> <font face=Wingdings>1</font>個人服務</font><br>├<a href=upface.asp>上傳頭像</a><br>├<a href=upphoto.asp>上傳照片</a><br>├<a href=searchok.asp?search=author&searchxm=username>我的文章</a><br>├<a href=message.asp>管理留言</a><br><br> <font face=Wingdings color=999900>v</font><a href=login.asp?menu=out><font color=999900>退出社區</font></a></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div>");
var sidemenu = document.all.master;
function yuzi(){
sidemenu.style.top = document.body.scrollTop+10
}
setInterval("yuzi()",100);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -