代碼: 選擇全部
#################################################################
## Mod Title: Menu MOD
## Mod Version: 1.0.0
## Author: Mowd
## Description:
##
## Installation Level: Easy
## Installation Time: 2
## Files To Edit: overall_footer.tpl
## Included Files: menu.gif , menub.gif , top.gif
#################################################################
## Security Disclaimer: This MOD Cannot Be Posted To Or Added At Any Non-Official phpBB Sites
#################################################################
##
## Author Note:
## Upload your default avatar pic into /template/subSilver/images/menu/ !!!!!!!!!
##
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################
#
#-----[ COPY ]------------------------------------------
#
templates/subSilver/images/menu/menu.gif
templates/subSilver/images/menu/menub.gif
templates/subSilver/images/menu/top.gif
#
#-----[ OPEN ]------------------------------------------
#
overall_footer.tpl
#
#-----[ FIND ]------------------------------------------
#
/body
/html
#
#-----[ BEFORE, ADD ]------------------------------------------
#
style type="text/css"
!--
#master {position:absolute; width: 200px; top: 10px; left: -120px; z-index:2; visibility:visible;}
#menu {position:absolute; width: 18px; top: 20px; left: 120px; z-index:5; visibility:visible;}
#top {position:absolute; width: 120px; top: 20px; left: 0px; z-index:5; visibility:visible;}
#screen {position:absolute; width: 120px; top: 26px; left: 0px; z-index:5; visibility:visible;}
#screenlinks {position:absolute; width: 120px; top: 26px; left: 0px; z-index:5; visibility:visible;}
--
/style
style type="text/css"
!--
.NavJump {font-family: arial; font-size: 10pt; color: #808080; text-decoration: none;}
a:link.NavJump {color : #808080;}
a:visited.NavJump {color : #808080;}
a:active.NavJump {text-decoration: none; color: #c0c0c0;}
a:hover.NavJump {text-decoration: none; color: #c0c0c0;}
--
/style
script language = "javascript"
!--
var ie = document.all ? 1 : 0
var ns = document.layers ? 1 : 0
if(ie){
document.write('style type="text/css"')
document.write("#screen {filter:Alpha(Opacity=30);}")
document.write("/style")
}
if(ns){
document.write('style type="text/css"')
document.write("#master {clip:rect(0,150,250,0);}")
document.write("/style")
}
//--
/script
script language = "javascript"
!--
var ie = document.all ? 1 : 0
var ns = document.layers ? 1 : 0
var master = new Object("element")
master.curLeft = -120; master.curTop = 10;
master.gapLeft = 0; master.gapTop = 0;
master.timer = null;
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}
if(ie){document.all[layerName].style.left = eval(layerName).curLeft}
if(ns){document[layerName].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}
if(ie){document.all[layerName].style.top = eval(layerName).curTop}
if(ns){document[layerName].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); if(ie){document.menutop.src = "templates/subSilver/images/menu/menub.gif"}; expandState = 1;}
else{setPace("master", -120, 10, 10); if(ie){document.menutop.src = "templates/subSilver/images/menu/menu.gif"}; expandState = 0;}
}
//--
/script
div id="master"
div id="menu"
<table border="0" width="18" cellspacing="0" cellpadding="0">
<tr><td width="100%">a href="javascript:expand()" onfocus="this.blur()" onmouseover="expand()" img name="menutop" border="0" src="templates/subSilver/images/menu/menu.gif" width="18" height="70"</a></td></tr>
</table>
/div
div id="top"
<table border="0" width="120" cellspacing="0" cellpadding="0">
<tr><td width="100%">img border="0" src="templates/subSilver/images/menu/top.gif" width="120" height="6"</td></tr>
</table>
/div
div id="screen"
<table border="0" width="120" cellspacing="0" cellpadding="5">
<tr><td width="100%" bgcolor="#00aaff">
<table border="0" width="100%" bgcolor="#00aaff" cellspacing="0" cellpadding="0">
<tr><td width="100%">
<table border="0" width="100%" cellspacing="1" cellpadding="5">
<tr><td width="100%" bgcolor="#FFFFFF">
<font class="NavJump">br</font><font class="NavJump">br</font>
</td></tr>
</table>
</td></tr>
</table>
</td></tr>
</table>
/div
div id="screenlinks"
<table border="0" width="120" cellspacing="0" cellpadding="5">
<tr><td width="100%">
<table border="0" width="100%" bgcolor="#0000FF" cellspacing="0" cellpadding="0">
<tr><td width="100%">
<table border="0" width="100%" cellspacing="1" cellpadding="5">
<tr><td width="100%" bgcolor="#CCDDFF">
<a href="http://www.openfind.com.tw/" class="NavJump" target="_blank"><b>Openfind 網路資源搜尋</b></a>br
<a href="http://phpbb-tw.net/phpbb/index.php" class="NavJump" target="_blank"><b>竹貓星球</b></a>br
<a href="http://pb.idv.tw/phpBB2/index.php" class="NavJump" target="_blank"><b>PB聯合團隊</b></a>br
<a href="http://starryhometown.net/forum/site.php" class="NavJump" target="_blank"><b>Starry Hometown</b></a>br
<a href="http://www.laha.com.tw/" class="NavJump" target="_blank"><b>LAHA TEAM</b></a>br
<font class="NavJump">尚在建?#93;中...</font>
</td></tr>
</table>
</td></tr>
</table>
</td></tr>
</table>
/div
/div
script language = "javascript"
!--
if(ie){var sidemenu = document.all.master;}
if(ns){var sidemenu = document.master;}
function FixY(){
if(ie){sidemenu.style.top = document.body.scrollTop+10}
if(ns){sidemenu.top = window.pageYOffset+10}
}
setInterval("FixY()",100);
//--
/script
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# Eom
是這個嗎?