分享一款仿淘宝网带左右切换按钮焦点图定时切换显示特效,用户可点击左右按钮来实现图片切换显示,根据自己的需求来自定义。
<!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>仿淘宝网带左右按钮js+css焦点图切换特效_武鸣人</title> <style type=text/css> body,h1,h2,h3,h4,h5,h6,p,ul,ol,li,form,img,dl,dt,dd,table,th,td,blockquote,fieldset,div,strong,label,em{margin:0;padding:0;border:0;} ul,ol,li{list-style:none;} input,button{margin:0;font-size:12px;vertical-align:middle;} body{font-size:12px;font-family:Arial, Helvetica, sans-serif; } table{border-collapse:collapse;border-spacing:0;} #slide_wuming_ren{MARGIN: 20px auto; WIDTH: 690px; POSITION: relative; HEIGHT: 472px} #slide_wuming_ren .cor_wuming_ren { CLEAR: both; BORDER-TOP: #333 1px solid; DISPLAY: block; MARGIN: 0px 1px; OVERFLOW: hidden; HEIGHT: 0px } #slide_wuming_ren .slide-content { BACKGROUND: #333 } #slide_wuming_ren .chable_wuming_ren A { DISPLAY: block; Z-INDEX: 99; WIDTH: 37px; COLOR: #b4b4b4; POSITION: absolute; TOP: 205px; HEIGHT: 65px; TEXT-DECORATION: none } #slide_wuming_ren .chable_wuming_ren SPAN { DISPLAY: block; BACKGROUND: #4b4b4b; FONT: 700 53px/57px arial; WIDTH: 37px; CURSOR: pointer; HEIGHT: 63px; TEXT-ALIGN: center } #slide_wuming_ren .chable_wuming_ren .cor_wuming_ren { BORDER-LEFT-COLOR: #4b4b4b; BORDER-BOTTOM-COLOR: #4b4b4b; BORDER-TOP-COLOR: #4b4b4b; BORDER-RIGHT-COLOR: #4b4b4b } #slide_wuming_ren .chable_wuming_ren .prev { LEFT: -10px } #slide_wuming_ren .chable_wuming_ren .next { RIGHT: -10px } #slide_wuming_ren .chable_wuming_ren A:hover { COLOR: #f43d1e } #slide_wuming_ren .chable_wuming_ren A:hover SPAN { COLOR: #f43d1e } #slide_wuming_ren .slide-content { PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px } #slide_wuming_ren .wrap { OVERFLOW: hidden; WIDTH: 670px; HEIGHT: 450px } #slide_wuming_ren UL { WIDTH: 10000px } #slide_wuming_ren LI { FLOAT: left; WIDTH: 340px; HEIGHT: 450px } #slide_wuming_ren LI IMG { WIDTH: 330px; HEIGHT: 450px } </style> <SCRIPT type="text/javascript" src="/img/20240420_www_wuming_ren_54.js"></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> 需要加载js文件,请刷新页面后看效果! <DIV class=main-wrap> <DIV id=slide_wuming_ren> <B class=cor_wuming_ren></B> <DIV class=slide-content id=J_slide> <DIV class=wrap> <UL class=ks-switchable-content> <LI><A href="https://www.wuming.ren/" target=_blank><IMG alt="武鸣人" src="/img/20240420_www_wuming_ren_55.jpg"></A></LI> <LI><A href="https://www.wuming.ren/" target=_blank><IMG alt="武鸣人" src="/img/20240420_www_wuming_ren_56.jpg"></A></LI> <LI><A href="https://www.wuming.ren/" target=_blank><IMG alt="武鸣人" src="/img/20240420_www_wuming_ren_57.jpg"></A></LI> <LI><A href="https://www.wuming.ren/" target=_blank><IMG alt="武鸣人" src="/img/20240420_www_wuming_ren_58.jpg"></A></LI> <LI><A href="https://www.wuming.ren/" target=_blank><IMG alt="武鸣人" src="/img/20240420_www_wuming_ren_59.jpg"></A></LI> <LI><A href="https://www.wuming.ren/" target=_blank><IMG alt="武鸣人" src="/img/20240420_www_wuming_ren_60.jpg"></A></LI> </UL> </DIV> <DIV class=chable_wuming_ren> <A class=prev id=J_prev href="javascript:void(0);"> <B class=cor_wuming_ren></B><SPAN>‹</SPAN><B class=cor_wuming_ren></B></A> <A class=next id=J_next href="javascript:void(0);"> <B class=cor_wuming_ren></B><SPAN>›</SPAN><B class=cor_wuming_ren></B></A></DIV> </DIV> <B class=cor_wuming_ren></B></DIV> </DIV> <SCRIPT type=text/javascript> var D=YAHOO.util.Dom, E=YAHOO.util.Event; //武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) KISSY().use("*", function(S) { var el = D.get('J_slide'), activeIndex = parseInt(el.getAttribute('data-active-index')) || 0; var carousel = new S.Carousel(el, { hasTriggers: false, navCls: 'ks-switchable-nav', contentCls: 'ks-switchable-content', activeTriggerCls: 'current', effect: "scrollx", steps: 2, viewSize: [680], activeIndex: activeIndex }); E.on('J_prev', 'click', carousel.prev, carousel, true); E.on('J_next', 'click', carousel.next, carousel, true); }); //武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) KISSY().use("*", function(S) { var el = D.get('J_shoppingGuide'); if(!el){ return; } varactiveIndex = parseInt(el.getAttribute('data-active-index')) || 0; var carousel = new S.Carousel(el, { navCls: 'ks-switchable-nav', contentCls: 'ks-switchable-content', activeTriggerCls: 'current', effect: "scrollx", steps: 4, viewSize: [720], activeIndex: activeIndex }); //武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) E.on('J_shoppingGuidePrev', 'click', carousel.prev, carousel, true); E.on('J_shoppingGuideNext', 'click', carousel.next, carousel, true); }); </SCRIPT> </body> </html>
本文来自武鸣人网站,转载请注明出处