欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

漂亮的仿flash菜單,來自藍色經典

 更新時間:2006年06月26日 00:00:00   作者:  

<style>
/* 先把這個 xmenu 的樣式放到css里 */
.xmenu td{font-size:12px;font-family:verdana,arial;font-weight:bolder;color:#ffffff;border:1px solid #336699;background:#336699;filter:blendtrans(duration=0.5);cursor:hand;text-align:center;}
</style>

<script>
/*
http://lexrus.blueidea.com

這是把事件動作綁定到菜單上的函數
*/
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='#66CCFF'; //這是鼠標移上去時的背景顏色
     style.border='1px solid #ffffff'; //邊框
     style.color='black'; //文字顏色
     filters[0].play();
    }
   }
   onmouseout=function(){
    with(this){
     filters[0].apply();
     style.background='#336699'; //這是鼠標離開時的背景顏色
     style.border='1px solid #336699'; //邊框
     style.color='#ffffff'; //文字顏色
     filters[0].play();
    }
   }
  }
 }
}
</script>

<!--菜單從這里開始, 注意要把class設置成和css里相同的, 還要為它設一個id-->
<table class="xmenu" id="xmenu0" width="500" cellpadding="1" cellspacing="4" border="0" bgcolor="#336699" align="center">
 <tr>
  <td><a >www.lenvo.cn</a></td>
  <td>Name</td>
  <td>Is</td>
  <td>LeX</td>
  <td>Rus</td>
  <td>!!!</td>
 </tr>
</table>

<script>attachXMenu(xmenu0); //在上面這個table結束的地方執(zhí)行事件動作的綁定, 這里的這個xmenu0就是那個table的id</script>
<br><br><br><br>
<!--下面這個是豎排的-->
<table class="xmenu" id="xmenu1" width="100" cellpadding="1" cellspacing="4" border="0" bgcolor="#336699" align="center">
 <tr><td>My</td></tr>
 <tr><td>Name</td></tr>
 <tr><td>Is</td></tr>
 <tr><td>LeX</td></tr>
 <tr><td>Rus</td></tr>
 <tr><td>!!!</td></tr>
</table>
<script>attachXMenu(xmenu1);</script>

相關文章

最新評論