#1 橫拉式選單 (隱藏 ... - 蛙 (Administrator) 發表於 14-5-2012 17:15
<FONT color=blue><P></FONT><FONT color=blue><style></FONT></P>
<P><FONT color=blue>#divMenu {font-family:arial,helvetica; font-size:12pt; font-weight:bold}<BR>#divMenu a{text-decoration:none;}<BR>#divMenu a:hover{color:red;}<BR></style><BR><script language="JavaScript1.2"><BR>/********************************************************************************<BR>Submitted with modifications by Jack Routledge (</FONT><A href="http://fastway.to/compute"><FONT color=blue>http://fastway.to/compute</FONT></A><FONT color=blue>

<P><FONT color=blue>//These are the variables you have to set:</FONT></P>
<P><FONT color=blue>//How much of the layer do you wan't to be visible when it's in the out state?<BR>lshow=60</FONT></P>
<P><FONT color=blue>//How many pixels should it move every step? <BR>var move=10;</FONT></P>
<P><FONT color=blue>//At what speed (in milliseconds, lower value is more speed)<BR>menuSpeed=40</FONT></P>
<P><FONT color=blue>//Do you want it to move with the page if the user scroll the page?<BR>var moveOnScroll=true</FONT></P>
<P><FONT color=blue>/********************************************************************************<BR>You should't have to change anything below this.<BR>********************************************************************************/<BR>//Defining variables<BR>var tim;<BR>var ltop;</FONT></P>
<P><FONT color=blue>//Object constructor<BR>function makeMenu(obj,nest){<BR> nest=(!nest) ? '':'document.'+nest+'.'<BR> this.css=(n) ? eval(nest+'document.'+obj):eval(obj+'.style') <BR> this.state=1<BR> this.go=0<BR> this.width=n?this.css.document.width:eval(obj+'.offsetWidth')<BR> this.left=b_getleft<BR> this.obj = obj + "Object"; eval(this.obj + "=this"


<P><FONT color=blue>//Initing menu on pageload<BR>onload=menuInit;<BR></script><BR><div id="divMenu" style="position:absolute; top:30; left:20; width:200; visibility:hidden; background-color:#64D0FE"><BR><nobr><BR><a href="<A href="http://www.bunbun000.com/"><FONT color=blue>http://www.bunbun000.com/</FONT></A><FONT color=blue>">【笨笨網站】</a></FONT></FONT><FONT color=blue> -<BR><a href="<A href="http://www.bunbunhk.com/BBS/Discuz/index.php"><FONT color=blue>http://www.bunbunhk.com/BBS/Discuz/index.php</FONT></A><FONT color=blue>">【笨網論壇】</FONT></FONT><FONT color=blue></a> - <BR><a href="<A href="http://www.bunbunhk.com/cgi-bin/html/index.htm"><FONT color=blue>http://www.bunbunhk.com/cgi-bin/html/index.htm</FONT></A><FONT color=blue>">【語法測試】</FONT></FONT><FONT color=blue></a> -</FONT></P>
<P><FONT color=blue><a href="<A href="http://www.bunbunhk.com/bg.htm"><FONT color=blue>http://www.bunbunhk.com/bg.htm</FONT></A><FONT color=blue>">【免費資源】</a></FONT></FONT></P>
<P><FONT color=blue><a href="javascript://" onclick="moveMenu()" style="background-color:yellow;text-decoration:none">MENU</a><BR></nobr><BR></div></FONT><BR></P>
<P> </P>
<P><FONT color=#0000ff></FONT> </P>
<P><FONT color=#0000ff></FONT> </P>
<P><FONT color=#0000ff>top:30;</FONT></P>
<P><FONT color=purple><FONT size=3>選單位置高低,可更改</FONT><BR></FONT><FONT color=#0000ff size=3></FONT></P>
<P><FONT color=#0000ff size=3></FONT> </P>
<P><FONT color=#0000ff size=3>width:200;</FONT><BR><FONT color=purple size=3>選單按鈕闊度,可更改</FONT></P>
<P><FONT color=#800080 size=3></FONT> </P>
<P><FONT color=#800080 size=3></FONT> </P>
<P><FONT color=purple>如連結要另開新頁可將 a href 改為 a target="_blank" href</FONT></P>
<P><FONT color=#800080 size=3></FONT> </P>
<P><FONT color=#800080 size=3></FONT> </P><FONT color=#800080 size=3>
<P><FONT color=#0000ff size=3>如不能顯示語法效果可貼去本站</FONT><A href="http://www.bunbun000.com/html/index.htm" target=_blank><FONT color=red size=3>語法測試板</FONT></A><FONT color=#0000ff size=3>試看</FONT></P></FONT>