一款經典簡潔的CSS滑動門代碼,一款css滑動門

來源:互聯網
上載者:User

一款經典簡潔的CSS滑動門代碼,一款css滑動門

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>滑動門</title>
<style media="screen" type="text/css">
<!--
*{font-size:12px;}
html,body{margin:0;text-align:center;over-flow:hidden;height:100%;width:100%;}
UL{list-style-type:none; margin:0px;}
/* 標準盒模型 */
.ttl{height:18px;}
.ctt{height:auto;padding:6px;clear:both;border:1px solid #064ca1;border-top:0;text-align:left;}
.w936{margin:2px 0;clear:both;width:936px;/*滑動門的寬度*/}
/* TAB 轉場效果 */
.tb_{background-image: url('/jscss/demoimg/200901/tabs1.gif'); background-repeat: repeat-x;background-color: #E6F2FF;}
.tb_ ul{height:24px;}
.tb_ li{float:left;height: 24px;line-height:1.9;width: 94px;cursor:pointer;}
/* 控制顯示與隱藏css類 */
.normaltab   { background-image:url('/jscss/demoimg/200901/tabs2.gif'); background-repeat: no-repeat; color:#1F3A87 ;}
.hovertab    { background-image: url('/jscss/demoimg/200901/tabs3.gif'); background-repeat: no-repeat; color:#1F3A87; font-weight:bold }
.dis{display:block;}
.undis{display:none;}
-->
</style>
<script type="text/javascript" language="javascript">
//<!CDATA[
function g(o){return document.getElementById(o);}
function HoverLi(n){
//如果有N個標籤,就將i<=N;
for(var i=1;i<=6;i++){g('tb_'+i).className='normaltab';g('tbc_0'+i).className='undis';}g('tbc_0'+n).className='dis';g('tb_'+n).className='hovertab';
}
//如果要做成點擊後再轉到請將<li>中的onmouseover 改成 onclick;
//]]>
</script>
</head>
<body>
<div class="w936">
 <div id="tb_" class="tb_">
   <ul>
    <li id="tb_1" class="hovertab" onmouseover="x:HoverLi(1);">
    ASP.NET</li>
    <li id="tb_2" class="normaltab" onmouseover="i:HoverLi(2);">
    MYSQL</li>
    <li id="tb_3" class="normaltab" onmouseover="a:HoverLi(3);">
    DELPHI</li>
    <li id="tb_4" class="normaltab" onmouseover="o:HoverLi(4);">
    VB.NET</li>
    <li id="tb_5" class="normaltab" onmouseover="g:HoverLi(5);">
    JAVA</li>
    <li id="tb_6" class="normaltab" onmouseover="z:HoverLi(6);">
    PHP5</li>
   </ul>
 </div>
 <div class="ctt">
  <div class="dis" id="tbc_01">這裡是ASP.NET的相關內容</div>
  <div class="undis" id="tbc_02">這裡是MYSQL的相關內容</div>
  <div class="undis" id="tbc_03">這裡是DELPHI的相關內容</div>
  <div class="undis" id="tbc_04">這裡是VB.NET的相關內容</div>
  <div class="undis" id="tbc_05">這裡是JAVA的相關內容</div>
  <div class="undis" id="tbc_06">這裡是PHP5的相關內容</b>
  </div>
 </div>
</div>

<div>http://www.999jiujiu.com/</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.