这是一款常用的小窗口竖型选项卡切换广告代码,当用户的鼠标经过标题图片切换显示,实用的一个广告代码。
<!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" /> <meta name="keywords" content="武鸣人网站,武鸣信息网,武鸣本地网,武鸣信息资源平台,减肥,健身,励志,励志语录,js特效,网页特效,www.wuming.ren"> <meta name="description" content="欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。"> <title>实用竖型选项卡图片切换广告代码_武鸣人</title> <style type="text/css"> /* Reset style */ * { margin:0; padding:0; word-break:break-all; } body { background:#FFF; color:#333; font:12px/1.6em Helvetica, Arial, sans-serif; } h1, h2, h3, h4, h5, h6 { font-size:1em; } a { color:#0287CA; text-decoration:none; } a:hover { text-decoration:underline; } ul, li { list-style:none; } fieldset, img { border:none; } legend { display:none; } em, strong, cite, th { font-style:normal; font-weight:normal; } input, textarea, select, button { font:12px Helvetica, Arial, sans-serif; } table { border-collapse:collapse; } html { overflow:-moz-scrollbars-vertical; } /*Always show Firefox scrollbar*/ #www_wuming_ren { width:336px; height:88px; margin:0px; border:1px solid #FFAAD5; } #www_wuming_ren_pic { display:inline; position:relative; float:left; width:156px; height:87px; overflow:hidden; margin:0px 0 0 1px; } #www_wuming_ren_piclist { position:absolute; } #www_wuming_ren_piclist li { width:156px; height:86px; overflow:hidden; } #www_wuming_ren_piclist img { width:156px; height:86px; } #www_wuming_ren_btn { display:inline; float:left; width:25px;margin:2px 0px 2px 2px; } #www_wuming_ren_btn li { width:25px; height:21.2px; cursor:pointer; opacity:0.5; -moz-opacity:0.5; filter:alpha(opacity=50); text-align:center; } #www_wuming_ren_btn img { width:25px; height:21.2px; } #www_wuming_ren_btn .current { background: #970F5E no-repeat; opacity:1; -moz-opacity:1; filter:alpha(opacity=100);color:#FFFFFF; } #www_wuming_ren_tx { width:138px; height:85px; float:left;color: #970F5E; font-family:"宋体"; margin:3px 0 0 5px; } #www_wuming_ren_tx a{ text-decoration:none;color:#970F5E;} #www_wuming_ren_tx p { margin-top:1px;line-height:20px;} #www_wuming_ren_tx .normal { display:none; } </style> <script type="text/javascript"> function $(id) { return document.getElementById(id); } function add_www_wuming_ren(func){ var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function(){ oldonload(); func(); } } }//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) function moveElement(elementID,final_x,final_y,interval) { if (!document.getElementById) return false; if (!document.getElementById(elementID)) return false; var elem = document.getElementById(elementID); if (elem.movement) { clearTimeout(elem.movement); } if (!elem.style.left) { elem.style.left = "0px"; } if (!elem.style.top) { elem.style.top = "0px"; }//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) var xpos = parseInt(elem.style.left); var ypos = parseInt(elem.style.top); if (xpos == final_x && ypos == final_y) { return true; } if (xpos < final_x) { var dist = Math.ceil((final_x - xpos)/10); xpos = xpos + dist; }//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) if (xpos > final_x) { var dist = Math.ceil((xpos - final_x)/10); xpos = xpos - dist; } if (ypos < final_y) { var dist = Math.ceil((final_y - ypos)/10); ypos = ypos + dist; }//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) if (ypos > final_y) { var dist = Math.ceil((ypos - final_y)/10); ypos = ypos - dist; } elem.style.left = xpos + "px"; elem.style.top = ypos + "px"; var repeat = "moveElement('"+elementID+"',"+final_x+","+final_y+","+interval+")"; elem.movement = setTimeout(repeat,interval); }//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) function classNormal(iFocusBtnID,iFocusTxID){ var iFocusBtns= $(iFocusBtnID).getElementsByTagName('li'); var iFocusTxs = $(iFocusTxID).getElementsByTagName('li'); for(var i=0; i<iFocusBtns.length; i++) { iFocusBtns[i].className='normal'; iFocusTxs[i].className='normal'; } }//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) function classCurrent(iFocusBtnID,iFocusTxID,n){ var iFocusBtns= $(iFocusBtnID).getElementsByTagName('li'); var iFocusTxs = $(iFocusTxID).getElementsByTagName('li'); iFocusBtns[n].className='current'; iFocusTxs[n].className='current'; } function iFocusChange() { if(!$('www_wuming_ren')) return false; $('www_wuming_ren').onmouseover = function(){atuokey = true}; $('www_wuming_ren').onmouseout = function(){atuokey = false}; var iFocusBtns = $('www_wuming_ren_btn').getElementsByTagName('li'); var listLength = iFocusBtns.length; iFocusBtns[0].onmouseover = function() { moveElement('www_wuming_ren_piclist',0,0,5); classNormal('www_wuming_ren_btn','www_wuming_ren_tx'); classCurrent('www_wuming_ren_btn','www_wuming_ren_tx',0); }//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) if (listLength>=2) { iFocusBtns[1].onmouseover = function() { moveElement('www_wuming_ren_piclist',0,-85,5); classNormal('www_wuming_ren_btn','www_wuming_ren_tx'); classCurrent('www_wuming_ren_btn','www_wuming_ren_tx',1); } } if (listLength>=3) { iFocusBtns[2].onmouseover = function() { moveElement('www_wuming_ren_piclist',0,-171,5); classNormal('www_wuming_ren_btn','www_wuming_ren_tx'); classCurrent('www_wuming_ren_btn','www_wuming_ren_tx',2); } } if (listLength>=4) { iFocusBtns[3].onmouseover = function() { moveElement('www_wuming_ren_piclist',0,-257,5); classNormal('www_wuming_ren_btn','www_wuming_ren_tx'); classCurrent('www_wuming_ren_btn','www_wuming_ren_tx',3); } } }//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) setInterval('autoiFocus()',5000); var atuokey = false; function autoiFocus() { if(!$('www_wuming_ren')) return false; if(atuokey) return false; var focusBtnList = $('www_wuming_ren_btn').getElementsByTagName('li'); var listLength = focusBtnList.length; for(var i=0; i<listLength; i++) { if (focusBtnList[i].className == 'current') var currentNum = i; } if (currentNum==0&&listLength!=1 ){ moveElement('www_wuming_ren_piclist',0,-85,5); classNormal('www_wuming_ren_btn','www_wuming_ren_tx'); classCurrent('www_wuming_ren_btn','www_wuming_ren_tx',1); }//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) if (currentNum==1&&listLength!=2 ){ moveElement('www_wuming_ren_piclist',0,-171,5); classNormal('www_wuming_ren_btn','www_wuming_ren_tx'); classCurrent('www_wuming_ren_btn','www_wuming_ren_tx',2); } if (currentNum==2&&listLength!=3 ){ moveElement('www_wuming_ren_piclist',0,-257,5); classNormal('www_wuming_ren_btn','www_wuming_ren_tx'); classCurrent('www_wuming_ren_btn','www_wuming_ren_tx',3); }//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) if (currentNum==3 ){ moveElement('www_wuming_ren_piclist',0,0,5); classNormal('www_wuming_ren_btn','www_wuming_ren_tx'); classCurrent('www_wuming_ren_btn','www_wuming_ren_tx',0); } if (currentNum==1&&listLength==2 ){ moveElement('www_wuming_ren_piclist',0,0,5); classNormal('www_wuming_ren_btn','www_wuming_ren_tx'); classCurrent('www_wuming_ren_btn','www_wuming_ren_tx',0); } if (currentNum==2&&listLength==3 ){ moveElement('www_wuming_ren_piclist',0,0,5); classNormal('www_wuming_ren_btn','www_wuming_ren_tx'); classCurrent('www_wuming_ren_btn','www_wuming_ren_tx',0); } }//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) add_www_wuming_ren(iFocusChange); </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> <div id="www_wuming_ren"> <div id="www_wuming_ren_btn"> <ul> <li class="current">婚礼</li> <li class="normal">旅游</li> <li class="normal">家居</li> <li class="normal">家装</li> </ul> </div> <div id="www_wuming_ren_pic"> <div id="www_wuming_ren_piclist" style="left:4px; top:2px;"> <ul> <li><a href="https://www.wuming.ren" target="_blank"><img src="/img/20240418_www_wuming_ren_28.jpg" height="99" style="cursor:pointer;"/></a></li> <li><a href="https://www.wuming.ren" target="_blank"><img src="/img/20240418_www_wuming_ren_29.jpg" style="cursor:pointer;"/></a></li> <li><a href="https://www.wuming.ren" target="_blank"><img src="/img/20240418_www_wuming_ren_30.jpg" style="cursor:pointer;"/></a></li> <li><a href="https://www.wuming.ren" target="_blank"><img src="/img/20240418_www_wuming_ren_31.jpg" style="cursor:pointer;"/></a></li> </ul> </div> </div> <div id="www_wuming_ren_tx"> <ul> <li class="current"> <p>·<a href="https://www.wuming.ren" target="_blank">主题婚庆感动全世界</a></p> <p>·<a href="https://www.wuming.ren" target="_blank">新款时尚婚纱3折抢购</a></p> <p>·<a href="https://www.wuming.ren" target="_blank">唯美个性婚摄绽放爱</a></p> <p>·<a href="https://www.wuming.ren" target="_blank">超赞欧美新款婚嫁配饰</a></p> </li> <li class="normal"> <p>·<a href="https://www.wuming.ren" target="_blank">体验湖北端午节传统</a></p> <p>·<a href="https://www.wuming.ren" target="_blank">初夏去呼伦贝尔赏杜鹃</a></p> <p>·<a href="https://www.wuming.ren" target="_blank">南非花园大道凡间天路</a></p> <p>·<a href="https://www.wuming.ren" target="_blank">伦敦八免费景点任你游</a></p> </li> <li class="normal"> <p>·<a href="https://www.wuming.ren" target="_blank">Dior打造甜橙派美妆</a></p> <p>·<a href="https://www.wuming.ren" target="_blank">大S强推红酒面膜~~</a></p> <p>·<a href="https://www.wuming.ren" target="_blank">美宝莲打造灵动大眼</a></p> <p>·<a href="https://www.wuming.ren" target="_blank">欧美新款唇彩火爆来袭</a></p> </li> <li class="normal"> <p>·<a href="https://www.wuming.ren" target="_blank">节日促销液晶电视5折</a></p> <p>·<a href="https://www.wuming.ren" target="_blank">10款信价比高的商务本</a></p> <p>·<a href="https://www.wuming.ren" target="_blank">夏季很清凉节能空调扇</a></p> <p>·<a href="https://www.wuming.ren" target="_blank">8款低噪音全自动洗衣机</a></p> </li> </ul> </div> </div><!--www_wuming_ren end--> </body> </html>
本文来自武鸣人网站,转载请注明出处