實用好看的CSS+JS+table 導航,csstable

來源:互聯網
上載者:User

實用好看的CSS+JS+table 導航,csstable

預覽




<!doctype html><html lang="en"> <head>  <meta charset="UTF-8">  <meta name="Generator" content="EditPlus®">  <meta name="Author" content="">  <meta name="Keywords" content="">  <meta name="Description" content="">  <title>Document</title>  <style type="text/css">   .tab{   border:0px solid #000000;   width:98%;   height:50px;   background:#000000;  }  .taby{   display:none;  }  .tabx{   text-align:center;   border:0px solid #000000;   width:98%;   height:30px;   background:#999999;   display:block;  }  .tabx span{   font-size:14px;   color:#ffffff;   font-family:"黑體";   font-weight:500;   text-align:center;   margin:3px 10px;  }     .tab tr{   font-size:15px;   color:#ffffff;   font-family:"黑體";   font-weight:600;  }  .xstd{   border:0px solid #000000;   font-size:15px;   color:#000000;   font-family:"黑體";   font-weight:600;   background:#999999;     }  .lk{   font-size:15px;   color:#ffffff;   font-family:"黑體";   font-weight:600;   background:#000000;  }    </style>  <script>  function xz(id){  for(var i=1;i<=6;i++){          document.getElementById("td"+i).className="lk";  }  document.getElementById("td"+id).className="xstd";  if(id == '2'){         document.getElementById("xianshi").className="tabx"; var html="<span style=\"cursor:pointer;\" onclick=\"accp()\">外包業務</span><span style=\"cursor:pointer;\">外包業務</span><span style=\"cursor:pointer;\">外包業務</span>"; document.getElementById("xzt").innerHTML=html;  }else{     document.getElementById("xianshi").className="taby";  }  }  function accp(){  alert("敬請期待!");  }  </script> </head> <body>    <center><table  class="tab" cellspacing=0 cellpadding=0  >  <tr align="center"><td width="150px"> </td><td width="80px" style="cursor:pointer;" class="xstd" onclick="xz('1')"  id="td1" >首頁</td><td width="80px"  style="cursor:pointer;"  onclick="xz('2')" id="td2">公司業務</td><td width="80px" style="cursor:pointer;" onclick="xz('3')" id="td3">公司概況</td><td width="80px" style="cursor:pointer;" onclick="xz('4')" id="td4">公司成就</td><td width="80px" style="cursor:pointer;"  onclick="xz('5')" id="td5">連絡方式</td><td width="80px" style="cursor:pointer;"  onclick="xz('6')" id="td6">等待上線</td><td> </td>  </tr>  </table></center>  <center><table  class="taby" id="xianshi">  <tr ><td id="xzt" align="center" width="800px" ></td>  </tr>  </table></center> </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.