<!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 media="screen" type="text/css">
<!--
*{font-size:12px;}
html,body{margin:0;text-align:center;over-flow:hidden;height:100%;width:100%;}
UL{list-style-type:none; margin:0px;}
/* 标准盒模型 */
.ttl{height:18px;}
.ctt{height:auto;padding:6px;clear:both}
.w936{width:936px;margin:2px 0;clear:both;border:1px solid skyblue}
/* TAB 切换效果 */
.tb_{background-color: #E6F2FF; background-image: url('http://www.dc18.com/images/barbg_tab.gif'); background-repeat: repeat-x;}
.tb_ ul{height:24px;}
.tb_ li{float:left;height: 24px;padding-top: 6px;width: 94px;cursor:pointer;}
.normaltab { background-image:url('http://www.dc18.com/images/normal_tab.gif'); background-repeat: no-repeat; color:#1F3A87 ;}
.hovertab { background-image: url('http://www.dc18.com/images/hover_tab.gif'); background-repeat: no-repeat; color:#1F3A87; font-weight:bold }
.dis{display:block;}
.undis{display:none;}
-->
</style>
<script type="text/javascript" language="javascript">
<!--
function g(o){return document.getElementById(o);}
function HoverLi(n)
{
//如果有N个标签,就将i<=N;
//本功能非常OK,兼容IE7,FF,IE6;http://www.xiaogezi.cn/ [小鸽子]系列
for(var i=1;i<=6;i++){g('tb_'+i).className='normaltab';g('tbc_0'+i).className='undis';}
g('tbc_0'+n).className='dis';g('tb_'+n).className='hovertab';
}
//-->
</script>
</head>
<body>
<div class="w936">
<div id="tb_" class="tb_">
<ul>
<li id="tb_1" class="hovertab" onmouseover="xgz:HoverLi(1);">网上房展会</li>
<li id="tb_2" class="normaltab" onmouseover="xgz:HoverLi(2);">本月开盘</li>
<li id="tb_3" class="normaltab" onmouseover="xgz:HoverLi(3);">知名开发商</li>
<li id="tb_4" class="normaltab" onmouseover="xgz:HoverLi(4);">栏目导航</li>
<li id="tb_5" class="normaltab" onmouseover="xgz:HoverLi(5);">栏目导航</li>
<li id="tb_6" class="normaltab" onmouseover="xgz:HoverLi(6);">栏目导航</li>
</ul>
</div>
<div class="ctt">
<div class="dis" id="tbc_01">内容1</div>
<div class="undis" id="tbc_02">内容2</div>
<div class="undis" id="tbc_03">内容3</div>
<div class="undis" id="tbc_04">内容4</div>
<div class="undis" id="tbc_05">内容5</div>
<div class="undis" id="tbc_06">内容6</div>
</div>
</div>
<hr author="http://xiaogezi.cn" style="color:red;" />
</body>
</html>
[此贴子已经被作者于2007-5-25 15:50:09编辑过]