当前位置:首页 > 设计在线 > 网页设计 > CSS/Xhtml > 滑动门代码

滑动门代码

点击次数:72 次 发布日期:2008-11-26 22:56:15 作者:源代码网
源代码网推荐
<!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;border:1px solid #064ca1;border-top:0;text-align:left;}
源代码网推荐.w936{margin:2px 0;clear:both;width:936px;/*这里调整整个滑动门的宽度*/}
源代码网推荐/* TAB 切换效果 */
源代码网推荐.tb_{background-image: url("http://bbs.blueidea.com/attachments/2007/4/29/20070429_b6d924afad052649402dWs8adqAyLtgi.gif"); background-repeat: repeat-x;background-color: #E6F2FF;}
源代码网推荐.tb_ ul{height:24px;}
源代码网推荐.tb_ li{float:left;height: 24px;line-height:1.9;width: 94px;cursor:pointer;}
源代码网推荐/* 用于控制显示与隐藏的css类 */
源代码网推荐.normaltab   { background-image:url("http://bbs.blueidea.com/attachments/2007/4/29/20070429_1bd9c293199c87ac974auuJXlsPMeKDq.gif"); background-repeat: no-repeat; color:#1F3A87 ;}
源代码网推荐.hovertab    { background-image: url("http://bbs.blueidea.com/attachments/2007/4/29/20070429_55976880c7b020703a18yOxpDn5WBaHd.gif"); background-repeat: no-repeat; color:#1F3A87; font-weight:bold }
源代码网推荐.dis{display:block;}
源代码网推荐.undis{display:none;}
源代码网推荐-->
源代码网推荐</style>
源代码网推荐<script type="text/javascript" language="javascript">
源代码网推荐//<!CDATA[
源代码网推荐function g(o){return document.getElementById(o);}
源代码网推荐function HoverLi(n){
源代码网推荐//如果有N个标签,就将i<=N;
源代码网推荐//本功能非常OK,兼容IE7,FF,IE6
源代码网推荐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";
源代码网推荐}
源代码网推荐//如果要做成点击后再转到请将<li>中的onmouseover 改成 onclick;
源代码网推荐//]]>
源代码网推荐</script>
源代码网推荐</head>
源代码网推荐<body>
源代码网推荐<div class="w936">
源代码网推荐        <div id="tb_" class="tb_">
源代码网推荐                        <ul>
源代码网推荐                                <li id="tb_1" class="hovertab" onmouseover="x:HoverLi(1);">
源代码网推荐                                流行音乐</li>
源代码网推荐                                <li id="tb_2" class="normaltab" onmouseover="i:HoverLi(2);">
源代码网推荐                                美女写真</li>
源代码网推荐                                <li id="tb_3" class="normaltab" onmouseover="a:HoverLi(3);">
源代码网推荐                                平面设计</li>
源代码网推荐                                <li id="tb_4" class="normaltab" onmouseover="HoverLi(4);">
源代码网推荐                                网络学堂</li>
源代码网推荐                                <li id="tb_5" class="normaltab" onmouseover="g:HoverLi(5);">
源代码网推荐                                恋爱宝典</li>
源代码网推荐                                <li id="tb_6" class="normaltab" onmouseover="z:HoverLi(6);">
源代码网推荐                                站长学院</li>
源代码网推荐                        </ul>
源代码网推荐        </div>
源代码网推荐        <div class="ctt">
源代码网推荐                <div class="dis" id="tbc_01">流行音乐 的内容</div>
源代码网推荐                <div class="undis" id="tbc_02">美女写真 的内容</div>
源代码网推荐                <div class="undis" id="tbc_03">平面设计 的内容</div>
源代码网推荐                <div class="undis" id="tbc_04">网络学堂 的内容</div>
源代码网推荐                <div class="undis" id="tbc_05">恋爱宝典 的内容</div>
源代码网推荐                <div class="undis" id="tbc_06">站长学院 的内容</div>
源代码网推荐        </div>
源代码网推荐</div>
源代码网推荐<hr author="#" size="1" noshade="noshade" style="color:#064ca1;margin-top:30px;" />
源代码网推荐</body>
源代码网推荐</html>
源代码网供稿.
网友评论 (0)
会员中心
设计在线
本站推荐
设计在线之精华