Tab菜单(分离自迅雷)

 本文来自 www.wusecha.com

<!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>无标题文档</title>

<style type="text/css">
/*-------------------------------------
 css 
 design by HUANGJUN
 page build by zjf44262(at)gmail.com
 date 2008-2-25
----------------------------------------*/
.container{ float:right; width:247px;height:346px;}
.title{ clear:both;background:#EEF6FE; margin-top:1px; color:#1974C8; font-weight:bold; height:25px; line-height:25px; padding-left:14px; text-align:left; font-size:14px; border-bottom:1px solid #AEDEF2;}
.title a{ color:#1974C8;}
.title{position:relative;}
h4{ position:absolute; left:14px; top:1px; color:#1974C8; font-weight:bold; font-size:14px;}
.tab{ position:absolute; right:0; top:3px;}
.tab li{ float:left; padding:0 5px; text-align:center; margin:0 5px;cursor:pointer;height:23px; line-height:23px; font-size:12px; font-weight:normal;}
.tab li.up{ background:#fff; border:solid #AEDEF2; border-width:1px 1px 0 1px; padding:0 5px; height:22px; line-height:22px;color:#1974C8; font-weight:bold; text-align:center; margin:0 5px;}
.commbox{border:1px solid #AEDEF2;text-align:center; overflow:hidden; margin-bottom:5px;}
.content{font-size:13px; text-align:left;}
</style>
<script language="javascript">
 function showTab(elm,num,total) {
  for(i=1;i<=total;i++) {
   document.getElementById(elm+"_"+i).className = "" ;
  }
  document.getElementById(elm+"_"+num).className = "up" ;
 }
 function showSub(elm,num,total) {
  for (i=1;i<=total;i++) {
   document.getElementById(elm+"_sub"+i).style.display = "none" ;
  }
  document.getElementById(elm+"_sub"+num).style.display = "block" ;
 }
 function showMovieBox(num) {
  showTab("MovieBoxTab",num,2) ;
  showSub("MovieBoxList",num,2) ;
 }
</script>
</head>

<body>
 <div class="container commbox">
  <div class="title">
   <h4>票房榜</h4>
   <div class="tab">
    <ul>
     <li id="MovieBoxTab_1" class="up" οnmοuseοver="showMovieBox(1);">北美</li>
     <li id="MovieBoxTab_2" οnmοuseοver="showMovieBox(2);">香港</li>
    </ul>
   </div>
  </div>
  <div id="MovieBoxList_sub1">
   <div class="content">
  <ul class="content">
  <li>霍顿与无名氏 </li>
 </ul>
</div>

  </div>
  <div id="MovieBoxList_sub2" style="display:none;">
   <div class="content">
 
 <ul class="content">
  <li>我的最爱 </li>
</li>
 </ul>
</div>

  </div>
 </div>
</body>
</html>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值