很好看的选项卡
来源:互联网 发布:奇偶排序算法 编辑:程序博客网 时间:2024/04/19 15:21
<!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>兼容IE7 IE8 FF 等主流浏览器多标签滑动门</title>
<style type="text/css">
body{
color: #000;
font-family: "宋体", arial;
font-size: 12px;
background: #fff;
text-align: center;
margin: 0;
}
.nTab{
float: left;
width: 542px;
margin: 0 auto;
border-bottom:1px #C7C7CD solid;
background:#d5d5d5;
background-position:left;
background-repeat:repeat-y;
margin-bottom:2px;
}
.nTab .TabTitle{
clear: both;
height: 26px;
overflow: hidden;
}
.nTab .TabTitle ul{
margin:0;
padding:0;
}
.nTab .TabTitle li{
float: left;
width: 60px;
cursor: pointer;
padding-top: 6px;
padding-right: 0px;
padding-left: 0px;
padding-bottom: 7px;
list-style-type: none;
}
.nTab .TabTitle .active{ background:url(http://www.websjy.com/club/websjy_index/images/finance_nc_080124_ws_001.gif) left -25px no-repeat;border-left:1px #C7C7CD solid;border-top:1px #C7C7CD solid;border-bottom:1px #fff solid;}
.nTab .TabTitle .normal{ background:url(http://www.websjy.com/club/websjy_index/images/finance_nc_080124_ws_001.gif);border-top:1px #C7C7CD solid;border-bottom:1px #C7C7CD solid;}
.nTab .TabContent{
width:auto;background:#fff;
margin: 0px auto;
padding:10px 0 0 0;
border-right:1px #C7C7CD solid;border-left:1px #C7C7CD solid;
}
.none {display:none;}
</style>
<script type="text/javascript">
function nTabs(thisObj,Num){
if(thisObj.className == "active")return;
var tabObj = thisObj.parentNode.id;
var tabList = document.getElementById(tabObj).getElementsByTagName("li");
for(i=0; i <tabList.length; i++)
{
if (i == Num)
{
thisObj.className = "active";
document.getElementById(tabObj+"_Content"+i).style.display = "block";
}else{
tabList[i].className = "normal";
document.getElementById(tabObj+"_Content"+i).style.display = "none";
}
}
}
</script>
</head>
<body>
<br />
<br />
<center>
<div style="text-align:center; margin-left:200px;">
<!-- 选项卡开始 -->
<div class="nTab">
<!-- 标题开始 -->
<div class="TabTitle">
<ul id="myTab0">
<li class="active" onclick="nTabs(this,0);">全部全部</li>
<li class="normal" onclick="nTabs(this,1);">日志全部</li>
<li class="normal" onclick="nTabs(this,2);">咨询全部</li>
<li class="normal" onclick="nTabs(this,3);">相册全部</li>
<li class="normal" onclick="nTabs(this,4);">商城全部</li>
<li class="normal" onclick="nTabs(this,5);">社区全部</li>
<li class="normal" onclick="nTabs(this,6);">社区全部</li>
<li class="normal" onclick="nTabs(this,7);">社区全部</li>
<li class="normal" onclick="nTabs(this,8);">社区全部</li>
</ul>
</div>
<!-- 内容开始 -->
<div class="TabContent">
<div id="myTab0_Content0"> 欢迎访问:<a href="http://www.alixixi.com" target="_blank">阿里西西WEB开发 </a></div>
<div id="myTab0_Content1" class="none"><a href="http://www.alixixi.com">计源论坛 计源论坛</a></div>
<div id="myTab0_Content2" class="none"><a href="http://www.alixixi.com">计源论坛22</a></div>
<div id="myTab0_Content3" class="none"><a href="http://www.alixixi.com">计源论坛33</a></div>
<div id="myTab0_Content4" class="none"><a href="http://www.alixixi.com">计源论坛4</a></div>
<div id="myTab0_Content5" class="none"><a href="http://www.alixixi.com">5计源论坛55</a></div>
<div id="myTab0_Content6" class="none"><a href="http://www.alixixi.com">6计源论坛66</a></div>
<div id="myTab0_Content7" class="none"><a href="http://www.alixixi.com">7计源论坛77</a></div>
<div id="myTab0_Content8" class="none"><a href="http://www.alixixi.com">88计源论坛8</a></div>
</div>
</div>
<!-- 选项卡结束 -->
</div>
</center>
</body>
</html></font>
<a href="http://js.alixixi.com/">欢迎访问阿里西西网页特效代码站,js.alixixi.com</a>
- 很好看的选项卡
- 很好看的程序员小说:
- 很好看的表格样式
- 很好看的表格样式
- 很好看的一个图标
- 很好看的配图
- 很好看的css3 Loading
- 一副很好看很好看的新年手抄报
- 一个很好的看PDF的软件
- TabEsay!简单的,好用的,扩展性很好,的,选项卡
- 一部很好看的剧集heros
- 看《疯狂的程序员》,很好很新奇
- 带checkbox的下拉列表 很好看
- 很好看的动态网页相册----js
- 很好看的网页动画倒影效果
- 分享一个很好看的viewpager效果
- 网上的文章,看着很好
- 一番街的奇迹(很好看)
- CPP 中的一些基本概念
- 仿windows选项卡特效4
- 敏捷软件开发——开放封闭原则OCP
- 字母选项卡
- 如何撰写技术文档
- 很好看的选项卡
- 背景灰 弹出层
- Table Shema
- DIV在3秒后自动向右上角缩小并且消失
- 回收站被意外删除了怎么办?
- 鼠标悬停弹出层
- 多个选项卡
- 鼠标悬停弹出层
- 点击展开