關於滑動門的代碼,那時我還沒有用上IE7,FF,結果,發現只能在IE6下運行,代碼也很長;今天又有朋友問我這個,我只好花一點時間,終於把這個東東完成了,希望大家喜歡;
兼容IE7;FF;IE6
代碼更簡潔,更易讀;
<!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">
</style>
</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);">Q小鴿子</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 [Q小鴿子]</div>
</div>
</div>
<hr author="http://xiaogezi.cn" style="color:red;" />
</body>
</html>