经典tab选项卡滑动切换特效代码,这里有两款效果,有鼠标滑动和点击切换两款特效,网站常用滑动门切换特效。
<!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 name="keywords" content="武鸣人网站,武鸣信息网,武鸣本地网,武鸣信息资源平台,减肥,健身,励志,励志语录,js特效,网页特效,www.wuming.ren"> <meta name="description" content="欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。"> <title>js设计经典tab选项卡滑动门切换特效_武鸣人</title> <style> *{margin:0;padding:0;} body{margin:50px;font-size:12px;color:#666;} li{list-style:none;} .list{width:378px;height:100px;padding:10px;font-size:14px;line-height:24px;border:1px #cfedff solid;border-top:0;} .tab{width:398px;height:34px;border:1px #cfedff solid;border-bottom:0;background:#EBF7FF;} .tab ul{margin:0;padding:0;} .tab li{float:left;padding:0 30px;height:34px;line-height:34px;text-align:center;border-right:1px #ebf7ff solid;cursor:pointer;} .tab li.on_wuming{color:#5299c4;background:#fff;font-weight:bold;} .block{display:block;} </style> <script type="text/javascript"> function settab_wuming(name,num,n){ for(i=1;i<=n;i++){ var menu=document.getElementById(name+i); var con=document.getElementById(name+"_"+"wuming"+i); menu.className=i==num?"on_wuming":""; con.style.display=i==num?"block":"none"; } }//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) </script> </head> <body> <a href="https://www.wuming.ren">武鸣人</a>,各种信息资源免费发布,分享励志语录经典短句,减肥健身常识,各种js特效代码。网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)<hr> <!--欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。--> <script type="text/javascript" src="https://www.wuming.ren/ad/tc.js"></script> <script type="text/javascript" src="https://www.wuming.ren/ad/a.js"></script> <h1>武鸣人 鼠标经过切换</h1> <div class="tab"> <ul> <li id="wuming1" onmouseover="settab_wuming('wuming',1,4)" class="on_wuming">一号</li> <li id="wuming2" onmouseover="settab_wuming('wuming',2,4)">二号</li> <li id="wuming3" onmouseover="settab_wuming('wuming',3,4)">三号</li> <li id="wuming4" onmouseover="settab_wuming('wuming',4,4)">四号</li> </ul> </div> <div class="list"> <div id="wuming_wuming1"> <div><span><a href="https://www.wuming.ren" target="_blank">武鸣人网</a>,各种信息免费发布,资源共享合作共赢!一号内容</span></div> </div> <div id="wuming_wuming2" style="display:none;"> <div><span><a href="https://www.wuming.ren" target="_blank">武鸣人网</a>,各种信息免费发布,资源共享合作共赢!二号内容</span></div> </div> <div id="wuming_wuming3" style="display:none;"> <div><span><a href="https://www.wuming.ren" target="_blank">武鸣人网</a>,各种信息免费发布,资源共享合作共赢!三号内容</span></div> </div> <div id="wuming_wuming4" style="display:none;"> <div><span><a href="https://www.wuming.ren" target="_blank">武鸣人网</a>,各种信息免费发布,资源共享合作共赢!四号内容</span></div> </div> </div> <br /><br /><br /> <h1>武鸣人 鼠标点击切换</h1> <div class="tab"> <ul> <li id="wuming_ren1" onclick="settab_wuming('wuming_ren',1,4)" class="on_wuming">一号</li> <li id="wuming_ren2" onclick="settab_wuming('wuming_ren',2,4)">二号</li> <li id="wuming_ren3" onclick="settab_wuming('wuming_ren',3,4)">三号</li> <li id="wuming_ren4" onclick="settab_wuming('wuming_ren',4,4)">四号</li> </ul> </div> <div class="list"> <div id="wuming_ren_wuming1"> <div><span><a href="https://www.wuming.ren" target="_blank">武鸣人网</a>,各种信息免费发布,资源共享合作共赢!一号内容</span></div> </div> <div id="wuming_ren_wuming2" style="display:none;"> <div><span><a href="https://www.wuming.ren" target="_blank">武鸣人网</a>,各种信息免费发布,资源共享合作共赢!二号内容</span></div> </div> <div id="wuming_ren_wuming3" style="display:none;"> <div><span><a href="https://www.wuming.ren" target="_blank">武鸣人网</a>,各种信息免费发布,资源共享合作共赢!三号内容</span></div> </div> <div id="wuming_ren_wuming4" style="display:none;"> <div><span><a href="https://www.wuming.ren" target="_blank">武鸣人网</a>,各种信息免费发布,资源共享合作共赢!四号内容</span></div> </div> </div> </body> </html>
本文来自武鸣人网站,转载请注明出处