带左右按钮jquery多图切换显示特效,鼠标经过图片放大显示,非常实用的商城商品图片放大预览特效,可根据自己的需求来修改。
<!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"> #wwwwumingren{ float:none; margin:20px auto; text-align:center; width:500px;} .jqzoom{ width:350px; height:350px; position:relative;} .zoomdiv{ left:859px; height:400px; width:400px;} .list-h li{ float:left;} #spec-n5{width:350px; height:56px; padding-top:6px; overflow:hidden;} #spec-left{ background:url(/img/20240420_www_wuming_ren_67.gif) no-repeat; width:10px; height:45px; float:left; cursor:pointer; margin-top:5px;} #spec-right{background:url(/img/20240420_www_wuming_ren_68.gif) no-repeat; width:10px; height:45px; float:left;cursor:pointer; margin-top:5px;} #spec-list{ width:325px; float:left; overflow:hidden; margin-left:2px; display:inline;} #spec-list ul li{ float:left; margin-right:0px; display:inline; width:62px;} #spec-list ul li img{ padding:2px ; border:1px solid #ccc; width:50px; height:50px;} /*jqzoom*/ .jqzoom{position:relative;padding:0;} .zoomdiv{z-index:100;position:absolute;top:1px;left:0px;width:400px;height:400px;border:1px solid #e4e4e4;display:none;text-align:center;overflow: hidden;} .bigimg{width:800px;height:800px;} .jqZoomPup{z-index:10;visibility:hidden;position:absolute;top:0px;left:0px;width:50px;height:50px;border:1px solid #aaa;background:#FEDE4F 50% top no-repeat;opacity:0.5;-moz-opacity:0.5;-khtml-opacity:0.5;filter:alpha(Opacity=50);cursor:move;} #spec-list{ position:relative; width:322px; margin-right:6px;} #spec-list div{ margin-top:0;margin-left:-30px; *margin-left:0;} </style> <SCRIPT src="/img/jquery_wuming_ren.js" type=text/javascript></SCRIPT> <SCRIPT src="/img/20240420_www_wuming_ren_69_base.js" type=text/javascript></SCRIPT> </head> <body style="text-align:center"> <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 id=wwwwumingren> <div class=jqzoom id=spec-n1 onClick="window.open('https://www.wuming.ren')"><IMG height=350 src="/img/20240420_www_wuming_ren_70.jpg" jqimg="/img/20240420_www_wuming_ren_70.jpg" width=350> </div> <div id=spec-n5> <div class=control id=spec-left> <img src="/img/20240420_www_wuming_ren_67.gif" /> </div> <div id=spec-list> <ul class=list-h> <li><img src="/img/20240420_www_wuming_ren_71.jpg"> </li> <li><img src="/img/20240420_www_wuming_ren_72.jpg"> </li> <li><img src="/img/20240420_www_wuming_ren_73.jpg"> </li> <li><img src="/img/20240420_www_wuming_ren_70.jpg"> </li> <li><img src="/img/20240420_www_wuming_ren_71.jpg"> </li> <li><img src="/img/20240420_www_wuming_ren_72.jpg"> </li> <li><img src="/img/20240420_www_wuming_ren_73.jpg"> </li> <li><img src="/img/20240420_www_wuming_ren_70.jpg"> </li> <li><img src="/img/20240420_www_wuming_ren_71.jpg"> </li> <li><img src="/img/20240420_www_wuming_ren_72.jpg"> </li> <li><img src="/img/20240420_www_wuming_ren_73.jpg"> </li> <li><img src="/img/20240420_www_wuming_ren_70.jpg"> </li> </ul> </div> <div class=control id=spec-right> <img src="/img/20240420_www_wuming_ren_68.gif" /> </div> </div> </div> <SCRIPT type=text/javascript> $(function(){ $(".jqzoom").jqueryzoom({ xzoom:400, yzoom:400, offset:10, position:"right", preload:1, lens:1 });//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) $("#spec-list").jdMarquee({ deriction:"left", width:350, height:56, step:2, speed:4, delay:10, control:true, _front:"#spec-right", _back:"#spec-left" });//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) $("#spec-list img").bind("mouseover",function(){ var src=$(this).attr("src"); $("#spec-n1 img").eq(0).attr({ src:src.replace("\/n5\/","\/n1\/"), jqimg:src.replace("\/n5\/","\/n0\/") }); $(this).css({ "border":"2px solid #ff6600", "padding":"1px" }); }).bind("mouseout",function(){ $(this).css({ "border":"1px solid #ccc", "padding":"2px" }); }); })//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) </SCRIPT> <SCRIPT src="/img/20240420_www_wuming_ren_74.js" type="text/javascript"></SCRIPT> </body> </html>
本文来自武鸣人网站,转载请注明出处