|
控制碼內容:
一 將下面複製至 <head> 區內- <!------------ 插入控制碼區段開始 ------------>
- <style>
- .menulines{
- border:2px solid white;
- }
- .menulines a{
- text-decoration:none;
- color:#000000;
- }
- </style>
- <script language="JavaScript1.2">
- /*
- Highlight menu effect script: By Dynamicdrive.com
- For full source, Terms of service, and 100s DTHML scripts
- Visit http://www.dynamicdrive.com
- */
- function borderize(what,color){
- what.style.borderColor=color
- }
- function borderize_on(e){
- if (document.all)
- source3=event.srcElement
- else if (document.getElementById)
- source3=e.target
- if (source3.className=="menulines"){
- borderize(source3,"black")
- }
- else{
- while(source3.tagName!="TABLE"){
- source3=document.getElementById? source3.parentNode : source3.parentElement
- if (source3.className=="menulines")
- borderize(source3,"black")
- }
- }
- }
- function borderize_off(e){
- if (document.all)
- source4=event.srcElement
- else if (document.getElementById)
- source4=e.target
- if (source4.className=="menulines")
- borderize(source4,"white")
- else{
- while(source4.tagName!="TABLE"){
- source4=document.getElementById? source4.parentNode : source4.parentElement
- if (source4.className=="menulines")
- borderize(source4,"white")
- }
- }
- }
- </script>
- <!------------ 插入控制碼區段結束 ------------>
複製代碼
border:2px solid white;
指定提示邊框顯示寬度
color:#000000;
指定按鈕文字顯示顏色
二 將下面複製至 <body> 標籤後- <!------------ 插入控制碼區段開始 ------------>
- <table border="0" width="120" cellspacing="2" cellpadding="1" onMouseover="borderize_on(event)" onMouseout="borderize_off(event)">
- <tr><td width="100%" bgcolor="#64D0FE"><font size="3"><b>Main Menu</b></font></td></tr>
- <tr><td width="100%" class="menulines"><font size="2"><a href="#.htm">※ 教 學 快 報 ※</a> </font></td></tr>
- <tr><td width="100%" class="menulines"><font size="2"><a href="#.htm">※ 軟 體 下 載 ※</a> </font></td></tr>
- <tr><td width="100%" class="menulines"><font size="2"><a href="#.htm">※ 免 費 資 源 ※</a> </font></td></tr>
- <tr><td width="100%" class="menulines"><font size="2"><a href="#.htm">※ 背 景 音 樂 ※</a></font></td></tr>
- <tr><td width="100%" class="menulines"><font size="2"><a href="#.htm">※ 本 站 首 頁 ※</a> </font></td></tr>
- </table>
- <!------------ 插入控制碼區段結束 ------------>
複製代碼
width="120"
指定選單的顯示寬度
bgcolor="#64D0FE"
指定選單表頭的背景顏色 |
|