帝王谷资源网 Design By www.wdxyy.com
本文实例讲述了js实现左侧网页tab滑动门效果代码。分享给大家供大家参考。具体如下:
这是一款开口靠左的网页滑动门,网页滑动门,TAB滑动门,竖排滑动门菜单,竖排TAB选项卡,兼容IE6/IE7/FF/opera浏览器。其实竖排和横排的代码基本一样,只不过稍加修改就可以了。只要学会了一种滑动门,就能举一返三了。
运行效果截图如下:
在线演示地址如下:
http://demo.jb51.net/js/2015/js-left-tab-cha-style-codes/
具体代码如下:
<!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> <meta name="keywords" content="" /> <style type="text/css"> body{font-size:12px;font-family:"Lucida Grande",Verdana,Lucida,Arial,Helvetica,宋体,sans-serif;} a:link,a:visited,a:hover,a:active{text-decoration:none;color:#256bae;} .warp{width:586px; height:269px !important; height:271px;border:1px solid #dbdcd7;} .main{width:562px; height:269px !important;height:271px;padding:5px; margin-left:15px;overflow:hidden;float:left;} .news{position:absolute;z-index:4;width:24px;} .news ul{list-style:none;padding:0;margin:0;} .news ul li{ height:84px !important;height:88px;width:20px;margin-bottom:0px;padding-top:5px;text-align:center;cursor:pointer;;vertical-align:middle; background-color:#e5e5e5; border-right:#dbdcd7 solid 1px;border-bottom:#dbdcd7 solid 1px;} .news ul li.on{background-color:#ffffff; border:#FFFFFF 0px} .news span{display:block; margin-top:9px !important; margin-top:20px;} .dis{display:block;} .undis{display:none;} </style> <script type="text/javascript"> function g(o){return document.getElementById(o);} function HoverLi(m,n,counter){for(var i=1;i<=counter;i++){g('tb_'+m+i).className='';g('tbc_'+m+i).className='undis';}g('tbc_'+m+n).className='dis';g('tb_'+m+n).className='on';} </script> </head> <body> <strong>兼容IE6/IE7/FF/opera</strong><br><br> <div class="warp"> <div class="news"> <ul> <li class="on" id="tb_11" onmouseover="HoverLi(1,1,3);"><span>企业新闻</span></li> <li class="" id="tb_12" onmouseover="HoverLi(1,2,3);"><span>业内咨讯</span></li> <li class="" id="tb_13" onmouseover="HoverLi(1,3,3);"><span>业内咨讯</span></li> </ul> </div> <div class="dis" id="tbc_11"> <div class="main"> 1<br>企业新闻的内容1<br>企业新闻的内容1<br>企业新闻的内容1 </div> </div> <div class="undis" id="tbc_12"> <div class="main"> 2<br>业内咨讯的内容2<br>业内咨讯的内容2<br>业内咨讯的内容2<br> </div> </div> <div class="undis" id="tbc_13"> <div class="main"> 3<br>业内咨讯的内容3<br>业内咨讯的内容3<br>业内咨讯的内容3<br> </div> </div> </div> </body> </html>
希望本文所述对大家的JavaScript程序设计有所帮助。
标签:
js,左侧网页,tab,滑动
帝王谷资源网 Design By www.wdxyy.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
帝王谷资源网 Design By www.wdxyy.com
暂无评论...
RTX 5090要首发 性能要翻倍!三星展示GDDR7显存
三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。
首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。
据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。
更新日志
2024年10月26日
2024年10月26日
- 群星2013-青春缤纷辑压箱宝大公开3CD2[新加坡限量版][WAV整轨]
- 林育群.2013-BalladShow(日本版)【环球】【WAV+CUE】
- 陈加洛.1992-痛到感觉不到【宝丽金】【WAV+CUE】
- 群星.2023-宿命之敌电视剧原声带【韶愔音乐】【FLAC分轨】
- 東京事変-大発見[FLAC+CUE]
- 椎名林檎-三文ゴシップ[FLAC+CUE]
- 2024年08月04日
- 裘德《裘德「最后的水族馆」演唱会LIVE》[320K/MP3][228.89MB]
- 裘德《裘德「最后的水族馆」演唱会LIVE》[24bit 48kHz][FLAC/分轨][2.08G]
- 基因三重奏《如果你什么都不说 音乐会现场录音》[320K/MP3][145.37MB]
- 孟庭苇.1996-月亮说话(2020环球24KGOLD限量版)【上华】【WAV+CUE】
- 群星.1997-新艺宝优质音响系列·国语精选监听版【新艺宝】【WAV+CUE】
- 阿桑.2005-寂寞在唱歌(星外星引进版)【华研国际】【WAV+CUE】
- 基因三重奏《如果你什么都不说 音乐会现场录音》[FLAC/分轨][287.43MB]
- 蔡题谦《我爱你,却依然要看你走》[320K/MP3][88.65MB]