js 網頁導覽功能表效果

來源:互聯網
上載者:User
提示:您可以先修改部分代碼再運行

<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>超級酷的網頁導覽功能表</title><STYLE><!--.xmenu td{font-size:12px;font-family:verdana,arial;font-weight:none;color:#333333;border:1px solid #ffffff;background:#f6f6f6;filter:blendtrans(duration=0.5);cursor:hand;text-align:center;}--></sTYLE><script>/* http://www.111cn.net 網頁特效 超級酷的網頁導覽功能表這是把事件動作綁定到菜單上的函數*/function attachXMenu(objid){var tds=objid.getElementsByTagName('td');for(var i=0;i<tds.length;i++){with(tds[i]){onmouseover=function(){with(this){filters[0].apply();style.background='#3ea936'; //這是滑鼠移上去時的背景顏色style.border='1px solid #ffffff'; //邊框style.color='#ffffff'; //文字顏色filters[0].play();}}onmouseout=function(){with(this){filters[0].apply();style.background='#f6f6f6'; //這是滑鼠離開時的背景顏色style.border='1px solid #ffffff'; //邊框style.color='#333333'; //文字顏色filters[0].play();}}}}}</script></head><body><div align="center"><table border="1" width="778" cellpadding="0" height="30" id="table4" bgcolor=#DBDBDB bordercolor="#DBDBDB" cellspacing="0"><tr><td><div align="center"><table class="xmenu" id="xmenu0" border="0" width="776" cellspacing="3" cellpadding="3" height="30" id="table5"><tr><td onclick="window.open('http://www.111cn.net', '_blank');">首 頁</td><td onclick="window.open('http://www.111cn.net/listpage/103_1.htm', '_blank');">綜合特效</td><td onclick="window.open('http://www.111cn.net/listpage/102_1.htm', '_blank');">菜單特效</td><td onclick="window.open('http://www.111cn.net/listpage/108_1.htm', '_blank');">文本操作</td><td onclick="window.open('http://www.111cn.net/listpage/112_1.htm', '_blank');">圖形特效</td><td onclick="window.open('http://www.111cn.net/listpage/113_1.htm', '_blank');">圖形特效</td><td onclick="window.open('http://www.111cn.net/listpage/104_1.htm', '_blank');">狀態列類</td><td onclick="window.open('http://www.111cn.net/listpage/114_1.htm', '_blank');">時間日期</td><td onclick="window.open('http://www.111cn.net/listpage/120_1.htm', '_blank');">按鈕特效</td></tr></table><script>attachXMenu(xmenu0); //在上面這個table結束的地方執行事件動作的綁定, 這裡的這個xmenu0就是那個table的id</script></div></td></tr></table></div></body></html>本代碼由網頁特效網提供
提示:您可以先修改部分代碼再運行

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.