網上流行的標籤轉場效果

來源:互聯網
上載者:User

<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "<a href="http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd" target="_blank">http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd</a>">
<html xmlns="<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>">
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312" />
<meta name="keywords" content="" />
<title> Tab Demo </title>
<script type="text/javascript">
<!--
function c(i){
 var i;
 document.getElementById("tab").className="tabD"+i;
 window.name=i;//window.name版
}
onload=function(){
 var a=document.links;
 for(var i=0;i<a.length;i++)a[i].onfocus=function(){this.blur();}
}
//-->
</script>
<style type="text/css">
body,table,td,th,input,textarea,button,select{font:13px Verdana,"宋體",sans-serif;}
body{background-color:#eef;}

div#tab{width:300px;text-align:left;}
ul.tabU{
 list-style: none;
 margin: 0px;
 padding:1px 0px 0px .5em;
}
ul.tabU li{
 display: inline;
 margin-right:2px;
}
ul.tabU li a{
 color:black;
 font-weight:bold;
 line-height: 20px;
 text-decoration:none;
 background-image: url(attachments/month_0704/p200743202029.gif);
 border:1px #BBBBBB solid;
 border-bottom-width:0px;
 padding:0px 5px 2px;
 cursor: pointer;
}
div.tabC{
 display:none;
 border:1px solid;
 padding:6px;
}

div.tabD1 a.tabB1,a.tabB1:hover{background-position:0 -20px;border-color:#EAAD6B;}
div.tabD1 div.tabC1{border-color:#EAAD6B;display:block;background-color:#FDEDD8;}

div.tabD2 a.tabB2,a.tabB2:hover{background-position:0 -42px;border-color:#6ECEF3;}
div.tabD2 div.tabC2{border-color:#6ECEF3;display:block;background-color:#E6F6FD;}

div.tabD3 a.tabB3,a.tabB3:hover{background-position:0 -64px;border-color:#84AC44;}
div.tabD3 div.tabC3{border-color:#84AC44;display:block;background-color:#F1F6E7;}

div.tabD4 a.tabB4,a.tabB4:hover{background-position:0 -86px;border-color:#F37CA3;}
div.tabD4 div.tabC4{border-color:#F37CA3;display:block;background-color:#FFEEF4;}

div.tabD1 a.tabB1,div.tabD2 a.tabB2,div.tabD3 a.tabB3,div.tabD4 a.tabB4{padding:1px 5px 3px;}
</style>
</head>
<body>
<center>
<div id="tab" class="tabD1">
<script type="text/javascript">
<!--
//var i=parseInt(location.hash.replace("#",""));//hash版
var i=parseInt(window.name);//window.name版
if(i)document.getElementById("tab").className="tabD"+i;
//-->
</script>
<ul class="tabU">
<li><a onClick="c(1)" href="#1" class="tabB1">tab1</a></li><li><a onClick="c(2)" href="#2" class="tabB2">tab2</a></li><li><a onClick="c(3)" href="#3" class="tabB3">tab3</a></li><li><a onClick="c(4)" href="#4" class="tabB4">tab4</a></li>
</ul>
<div class="tabC tabC1"><b>Tab Demo</b> Ver1.2(window.name)
Created by forfor 2006-09-12</div>
<div class="tabC tabC2"><input value="hello"/></div>
<div class="tabC tabC3"><center><img alt="google" src="<a href="http://www.google.com/intl/en/images/logo.gif" target="_blank">http://www.google.com/intl/en/images/logo.gif</a>"/></center></div>
<div class="tabC tabC4">ver1.0 2005-09-09
ver1.1 2005-09-14
ver1.2 2006-09-12
<a href="javascript:void(c(0));">......</a></div>
</div>
</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.