![](https://p-blog.csdn.net/images/p_blog_csdn_net/doneter/fdd04dda0d6bbe60a0e1c719cd4b650c.jpg)
<!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>