刚看到的一个滑动门设计,很简洁
[runcode]<!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;[url]http://www.xiaogezi.cn/[/url] [小鸽子]系列
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);">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>[/runcode]
喜欢,跟大家分享一下
[[i] 本帖最后由 梦的编织者 于 2007-4-15 21:10 编辑 [/i]] 顶了,刚看了下不错 嗯 很简单! 简单实用为上 这个滑动门超级的好,我到处找这样的教程呢,
太感谢楼主了 好东西啊
我顶顶顶(^#@^ 的确是个简单的好东西。(^#@$%^ 好东西啊! (^#@^ (^#@^ (^#@^ 太感谢楼主了 寅生
哥哥已经发了类似的帖子了 呵呵 看到了。。更多效果可以到素材频道的网页特效 [url]http://sc.jcwcn.com/tx/index.htm[/url] 看看 好东西谢谢了 真的不错 收藏了 #kt..jcwcn.com@ 收藏了! 好东西#@jcwcn@@# 的确是个简单的好东西 高手就是高手 谢谢楼主,确实不错啊。 确实简洁!不错! 支持绒 呢 非常不错的东东,谢谢
好看
谢谢楼主了!#@jcwcn@@# 好东东 不过在opera下效果一般 还是有问题 Nice! 收藏……页:
[1]
