兼容IE7,FF,IE6 ie8的滑动门选项卡

<html><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://www.dc18.com/images/barbg_tab.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://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">//<!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><div id="tb_"><ul><li id="tb_1" onMouseOver="x:HoverLi(1);">流行音乐</li><li id="tb_2" onMouseOver="i:HoverLi(2);">美女写真</li><li id="tb_3" onMouseOver="a:HoverLi(3);">平面设计</li><li id="tb_4" onMouseOver="o:HoverLi(4);">网络学堂</li><li id="tb_5" onMouseOver="g:HoverLi(5);">恋爱宝典</li><li id="tb_6" onMouseOver="z:HoverLi(6);">Q小鸽子</li></ul></div><div><div id="tbc_01">流行音乐 的内容</div><div id="tbc_02">美女写真 的内容</div><div id="tbc_03">平面设计 的内容</div><div id="tbc_04">网络学堂 的内容</div><div id="tbc_05">恋爱宝典 的内容</div><div id="tbc_06"><b>[Q小鸽子] 的内容</b><br /><img src="http://vickeychen.go3.icpcn.com/images/logo_main.GIF"></div></div></div></body></html>

赞(0)
版权声明:本文采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权
文章名称:《兼容IE7,FF,IE6 ie8的滑动门选项卡》
文章链接:https://www.skykkk.com/archives2862.html
本站资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。

相关推荐

  • 暂无文章