<!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=utf-8" />
<title>选项卡secBoard</title>
<script type="text/javascript">
</script>
<style type="text/css">
/* Reset style */
* { margin:0; padding:0; word-break:break-all; }
body { background:#FFF; color:#333; font:12px/1.6em Helvetica, Arial, sans-serif; }
h1, h2, h3, h4, h5, h6 { font-size:1em; }
a { color:#333; text-decoration:none; }
a:hover { text-decoration:underline; }
ul, li { list-style:none; }
fieldset, img { border:none; }
/* Hotnews style */
#hotnews { width:300px; margin:100px; }
#hotnews_caption { width:300px; overflow:hidden; border-bottom:3px solid #C2130E; }
#hotnews_caption ul { float:right; }
#hotnews_caption ul li { float:left; border-left:1px solid #FFF; width:50px; line-height:25px; text-align:center; cursor:pointer; }
#hotnews_caption .normal { background:#CCC; }
#hotnews_caption .current{ background:#C2130E; color:#FFF; }
#hotnews_content {}
#hotnews_content .normal { display:none; }
#hotnews_content .current { display:block; }
#hotnews_content ul { padding:8px 0 0 5px; }
#hotnews_content ul li a { font-size:14px; }
</style>
<script type="text/javascript">
function secBoard(elementID,listName,n) {
var elem = document.getElementById(elementID);
var elemlist = elem.getElementsByTagName("li");
for (var i=0; i<elemlist.length; i++) {
elemlist[i].className = "normal";
var m = i+1;
document.getElementById(listName+"_"+m).className = "normal";
}
elemlist[n-1].className = "current";
document.getElementById(listName+"_"+n).className = "current";
}
</script>
</head>
<body>
<div id="hotnews">
<div id="hotnews_caption">
<ul>
<li class="current" οnmοusemοve="secBoard('hotnews_caption','list',1);">新闻</li>
<li class="normal" οnmοusemοve="secBoard('hotnews_caption','list',2);">火炬</li>
<li class="normal" οnmοusemοve="secBoard('hotnews_caption','list',3);">图片</li>
<li class="normal" οnmοusemοve="secBoard('hotnews_caption','list',4);">锐点</li>
</ul>
</div>
<div id="hotnews_content">
<div class="current" id="list_1">
<ul>
<li><a href="http://www.youweishop.com">[新闻]轿车逆行撞死斑马线上7岁后逃逸</a></li>
<li><a href="http://www.youweishop.com">[新闻]乌鲁木齐警方抓捕疑犯遭暴力</a></li>
<li><a href="http://www.youweishop.com">[新闻]河南驻马店警方配备宝马警车领导开道</a></li>
</ul>
</div>
<div class="normal" id="list_2">
<ul>
<li><a href="http://www.youweishop.com">[火炬]轿车逆行撞死斑马线上7岁学后逃逸</a></li>
<li><a href="http://www.youweishop.com">[火炬]网友创作歌曲"人民心疼你"表达理敬意</a></li>
<li><a href="http://www.youweishop.com">[火炬]河南驻马店警方配备宝马警车</a></li>
</ul>
</div>
<div class="normal" id="list_3">
<ul>
<li><a href="http://www.youweishop.com">[图片]轿车逆行撞死斑马线上7岁学童后逃逸</a></li>
<li><a href="http://www.youweishop.com">[图片]网友创作歌曲"人民心疼你"总理敬意</a></li>
<li><a href="http://www.youweishop.com">[图片]河南驻马店警方配备宝马警车 为领导开道</a></li>
</ul>
</div>
<div class="normal" id="list_4">
<ul>
<li><a href="http://www.youweishop.com">[锐点]轿车逆行撞死斑马线上7岁学童后逃逸</a></li>
<li><a href="http://www.youweishop.com">[锐点]阿拉伯媒体称赖斯正与卡扎菲长子热恋</a></li>
<li><a href="http://www.youweishop.com">[锐点]河南驻马店警方配备宝马警车导开道</a></li>
</ul>
</div>
</div>
</div>
</body>
</html>
选项卡
最新推荐文章于 2021-12-06 19:49:02 发布