隱 藏 選 單
<script language="JavaScript1.2">
function move(x) {
if (document.all) {
object1.style.pixelLeft += x;
object1.style.visibility = "visible"}
else if (document.layers) {
document.object1.left += x;
document.object1.visibility = "show"}};
function makeStatic() {
if (document.all) {object1.style.pixelTop=document.body.scrollTop+20}
else {eval(document.object1.top=eval(window.pageYOffset+20));}
setTimeout("makeStatic()",0);}
</script>
<style>
<!--
.hl {
Background-Color : yellow;
Cursor:hand;
}
.n {
Cursor:hand;
}
-->
</style>
<LAYER visibility="hide" top="20" name="object1" bgcolor="black" left="0" onmouseover="move(132)" onmouseout="move(-132)">
<script language="JavaScript1.2">
function positionmenu(){
move(-132)
}
if (document.all) {document.write('<DIV ID="object1" style="visibility:hidden;cursor:hand; Position : Absolute ;Left : 0px ;Top : 20px ;Z-Index : 20" onmouseover="move(132)" onmouseout="move(-132)">')}
</script>
<table border="0" cellpadding="0" cellspacing="1" width="150" bgcolor="#000000">
<tr><td bgcolor="#0099FF"> <font size="4" face="Arial"><b>選單</b></font></td>
<script language="JavaScript1.2">
document.write('<td align="center" rowspan="100" width="16" bgcolor="#FF6666"><span style="font-size:13px"><p align="center"><font face="Arial Black">S<br>I<br>D<br>E<br>M<br>E<br>N<BR>U</font></p></span></TD>')
</script>
</tr>
<script language="JavaScript1.2"><!--
if (document.all||document.layers) {
makeStatic();}
var text=new Array();
var thelink=new Array();
//選單及連結路徑
text[0]="熊仔小屋";
text[1]="熊仔小屋";
text[2]="熊仔小屋";
text[3]="熊仔小屋";
text[4]="熊仔小屋";
text[5]="熊仔小屋";
text[6]="熊仔小屋";
thelink[0]="http://hkbear.hk.st/";
thelink[1]="http://hkbear.hk.st/";
thelink[2]="http://hkbear.hk.st/";
thelink[3]="http://hkbear.hk.st/";
thelink[4]="http://hkbear.hk.st/";
thelink[5]="http://hkbear.hk.st/";
thelink[6]="http://hkbear.hk.st/";
var linktarget=''
function navigateie(which){
if (linktarget=='')
window.location=thelink[which]
else if (linktarget=='new')
window.open(thelink[which])
else{
temp_var=eval("window.parent."+linktarget)
temp_var.location=thelink[which]
}
}
for (i=0;i<=text.length-1;i++)
if (document.all) {document.write('<TR><TD height=20 bgcolor=white onclick="navigateie('+i+')" onmouseover="className=\'hl\'" onmouseout="className=\'n\'"><FONT SIZE=2 FACE=ARIAL> '+text+'</FONT></TD></TR>')}
else {document.write('<TR><TD bgcolor="white"><ILAYER><LAYER HEIGHT="18" onmouseover="this.bgColor=\'yellow\'" onmouseout="this.bgColor=\'white\'" width=131><FONT SIZE=2 FACE=ARIAL> <A HREF="'+thelink+'" target="'+linktarget+'" id="nounderline">'+text+'</A></FONT></LAYER></ILAYER></TD></TR>')}
</script>
<tr>
<td bgcolor="#0099FF"><font size="1" face="Arial"> </font></td>
</TR>
</table>
<script language="JavaScript1.2">
if (document.all) {document.write('</DIV>')}
window.onload=positionmenu
</script>
</LAYER>
修 改 原 始 碼 的 內 容 ( 修改以下紅色的部分,原始碼中所有以下的部份要修改 )
text[0]="熊仔小屋";
text[1]="熊仔小屋";
text[2]="熊仔小屋";
text[3]="熊仔小屋";
text[4]="熊仔小屋";
text[5]="熊仔小屋";
text[6]="熊仔小屋";
thelink[0]="http://hkbear.hk.st/";
thelink[1]="http://hkbear.hk.st/";
thelink[2]="http://hkbear.hk.st/";
thelink[3]="http://hkbear.hk.st/";
thelink[4]="http://hkbear.hk.st/";
thelink[5]="http://hkbear.hk.st/";
thelink[6]="http://hkbear.hk.st/";
|