选项卡导航

<!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 type="text/css">
*{ margin:0; padding:0;}
body{ font:12px Arial; text-align:center; padding:50px;}
/* jh */
.title li{ float:left; margin:auto; list-style:none; }
.title li a{color:#000; text-decoration:none; padding-left:30px; display:block; float:left; height:29px; line-height: 29px; text-align: center; background: url( http://blog.gulu77.com/demo/images/menuLeft.gif) no-repeat left -29px;}
.title li a span{ padding-right:30px; display:block; float:left; height:29px; line-height: 29px; text-align: center; background: url( http://blog.gulu77.com/demo/images/menuRight.gif) no-repeat right -29px;}
.title li a:hover{ background: url( http://blog.gulu77.com/demo/images/menuLeft.gif) no-repeat left bottom;}
.title li a:hover span{color:#f30; text-decoration:underline; background: url( http://blog.gulu77.com/demo/images/menuRight.gif) no-repeat right bottom;}
.title{ margin:auto; width:522px; height: 28px; text-align:left;}
.intabcurrent a{color:#fff!important;}
#aa .tabcurrent a{color:#fff; background: url( http://blog.gulu77.com/demo/images/menuLeft.gif) no-repeat left -87px;}
#aa .tabcurrent a span{background: url( http://blog.gulu77.com/demo/images/menuRight.gif) no-repeat right -87px;}
#aa .intabcurrent a{background: url( http://blog.gulu77.com/demo/images/menuLeft.gif) no-repeat left -87px;}
#aa .intabcurrent a span{background: url( http://blog.gulu77.com/demo/images/menuRight.gif) no-repeat right -87px;}
#bb .intabcurrent a{background: url( http://blog.gulu77.com/demo/images/menuLeft.gif) no-repeat left 0;}
#bb .intabcurrent a span{background: url( http://blog.gulu77.com/demo/images/menuRight.gif) no-repeat right 0;}
#cc .intabcurrent a{background: url( http://blog.gulu77.com/demo/images/menuLeft.gif) no-repeat left -58px;}
#cc .intabcurrent a span{background: url( http://blog.gulu77.com/demo/images/menuRight.gif) no-repeat right -58px;}
#dd .intabcurrent a{background: url( http://blog.gulu77.com/demo/images/menuLeft.gif) no-repeat left -145px;}
#dd .intabcurrent a span{background: url( http://blog.gulu77.com/demo/images/menuRight.gif) no-repeat right -145px;}
#ee .intabcurrent a{background: url( http://blog.gulu77.com/demo/images/menuLeft.gif) no-repeat left -232px;}
#ee .intabcurrent a span{background: url( http://blog.gulu77.com/demo/images/menuRight.gif) no-repeat right -232px;}
.box1,.box2,.box3,.box4,.box5{margin:auto; width:500px; height:100px; padding:10px; text-align:left; line-height:220%;}
.box1{ background:#DFEBF7; border:1px solid #3A81C8; border-top:3px solid #3A81C8;}
.box2{ background:#FFECD2; border:1px solid #FF950B; border-top:3px solid #FF950B;}
.box3{ background:#FFECF5; border:1px solid #FE74B8; border-top:3px solid #FE74B8;}
.box4{ background:#BCEFEA; border:1px solid #00988B; border-top:3px solid #00988B;}
.box5{ background:#E3B5FF; border:1px solid #C489E7; border-top:3px solid #C489E7;}
</style>
<SCRIPT language=javascript>
function selectAfiveLayer(i)
{
switch(i)
{
case 1:
document.getElementById("Afive1").style.display="block";document.getElementById("Afiveli1").className="intabcurrent";
document.getElementById("Afive2").style.display="none";document.getElementById("Afiveli2").className="";
document.getElementById("Afive3").style.display="none";document.getElementById("Afiveli3").className="";
document.getElementById("Afive4").style.display="none";document.getElementById("Afiveli4").className="";
document.getElementById("Afive5").style.display="none";document.getElementById("Afiveli5").className="";
break;
case 2:
document.getElementById("Afive1").style.display="none";document.getElementById("Afiveli1").className="";
document.getElementById("Afive2").style.display="block";document.getElementById("Afiveli2").className="intabcurrent";
document.getElementById("Afive3").style.display="none";document.getElementById("Afiveli3").className="";
document.getElementById("Afive4").style.display="none";document.getElementById("Afiveli4").className="";
document.getElementById("Afive5").style.display="none";document.getElementById("Afiveli5").className="";
break;
case 3:
document.getElementById("Afive1").style.display="none";document.getElementById("Afiveli1").className="";
document.getElementById("Afive2").style.display="none";document.getElementById("Afiveli2").className="";
document.getElementById("Afive3").style.display="block";document.getElementById("Afiveli3").className="intabcurrent";
document.getElementById("Afive4").style.display="none";document.getElementById("Afiveli4").className="";
document.getElementById("Afive5").style.display="none";document.getElementById("Afiveli5").className="";
break;
case 4:
document.getElementById("Afive1").style.display="none";document.getElementById("Afiveli1").className="";
document.getElementById("Afive2").style.display="none";document.getElementById("Afiveli2").className="";
document.getElementById("Afive3").style.display="none";document.getElementById("Afiveli3").className="";
document.getElementById("Afive4").style.display="block";document.getElementById("Afiveli4").className="intabcurrent";
document.getElementById("Afive5").style.display="none";document.getElementById("Afiveli5").className="";
break;
case 5:
document.getElementById("Afive1").style.display="none";document.getElementById("Afiveli1").className="";
document.getElementById("Afive2").style.display="none";document.getElementById("Afiveli2").className="";
document.getElementById("Afive3").style.display="none";document.getElementById("Afiveli3").className="";
document.getElementById("Afive4").style.display="none";document.getElementById("Afiveli4").className="";
document.getElementById("Afive5").style.display="block";document.getElementById("Afiveli5").className="intabcurrent";
break;
}
}
</SCRIPT>
</head>
<body>
<UL class="title">
<span id="aa"><LI class=tabcurrent id=Afiveli1><A href="javascript:selectAfiveLayer(1);" target=_self><span>首页</span></A></LI></span>
<span id="bb"><LI id=Afiveli2><A href="javascript:selectAfiveLayer(2);" target=_self><span>专区</span></A></LI></span>
<span id="cc"><LI id=Afiveli3><A href="javascript:selectAfiveLayer(3);" target=_self><span>皮肤</span></A></LI></span>
<span id="dd"><LI id=Afiveli4><A href="javascript:selectAfiveLayer(4);" target=_self><span>播放器</span></A></LI></span>
<span id="ee"><LI id=Afiveli5><A href="javascript:selectAfiveLayer(5);" target=_self><span>welcome欢迎动画</span></A></LI></span>
</UL>
<DIV id=Afive1 style="DISPLAY: block">
<div class="box1">首页111</div>
</DIV>
<DIV id=Afive2 style="DISPLAY: none">
<div class="box2">专区222</div>
</DIV>
<DIV id=Afive3 style="DISPLAY: none">
<div class="box3">皮肤333</div>
</DIV>
<DIV id=Afive4 style="DISPLAY: none">
<div class="box4">播放器444</div>
</DIV>
<DIV id=Afive5 style="DISPLAY: none">
<div class="box5">欢迎动画555</div>
</DIV>
</body>
</html> 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值