//=== viewid:dh_style_28_1568884981239 ===// /*pc,手机显示隐藏*/ function is_mobile(){ return window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767); } $(function(){ $("#dh_style_28_1568884981239 li").each(function(){ if($(this).find("ul") && $(this).find("ul").length != 0){ $(this).children("a.mainmenuset").removeattr('href'); if(is_mobile){ $(this).children("a.mainmenuset").attr('onclick','navswtich(this)'); } } }); }) //=== viewid:dh_style_28_1568884981239 ===// function navswtich(obj) { $(obj).siblings(".menuulcopy").slidetoggle(200); $(obj).toggleclass('ontoggle'); $(obj).parent().siblings().find(".menuulcopy").slideup(200); $(obj).parent().siblings().find(".fa-angle-down").removeclass('ontoggle'); } function subleft_dh_style_28_1568884981239(){ $("#dh_style_28_1568884981239 .menuul>li").each(function(){ $(this).find(".menuul03").css("left",'100%'); }) } $(window).resize(function() { subleft_dh_style_28_1568884981239(); }) $(function(){ $("#dh_style_28_1568884981239 .fa-navicon").click(function(){ $("#dh_style_28_1568884981239 .menuulcopy").each(function(){ $(this).siblings(".fa").show(); }) }) subleft_dh_style_28_1568884981239(); $("#dh_style_28_1568884981239 .subbox").css("top",$("#dh_style_28_1568884981239 .menuul_box").height()); if($("#dh_style_28_1568884981239 .menuul").hasclass("nohover")){ var tabnum = 0; $("#dh_style_28_1568884981239 .menuul>li").find(".onsub").each(function(){ tabnum += 1; $(this).parent().attr("tabnum",tabnum) }) $("#dh_style_28_1568884981239 .menuul>li .onsub").mouseover(function(){ $("#dh_style_28_1568884981239 .subbox").show(); var index = $(this).parent().attr("tabnum"); $("#dh_style_28_1568884981239 .subbox .subitems").eq(index-1).fadein(100).siblings().hide(); $("#dh_style_28_1568884981239 .subbox .submenuimgarea .submenuimgcon").eq(0).fadein(100).siblings().hide(); }) $("#dh_style_28_1568884981239 .subbox").mouseleave(function(){ $(this).hide(); }); $("#dh_style_28_1568884981239 .menuul>li .nosub").mouseover(function(){ $("#dh_style_28_1568884981239 .subbox").hide(); }) //风格41 42 } }) var color = $('#dh_style_28_1568884981239 .menustyle_28 .menuul02 .submenu02').css('background-color'); $('#dh_style_28_1568884981239 .menustyle_28').append(``); $('#dh_style_28_1568884981239 .menustyle_28 .menuul02 .submenu02').mouseover(function(){ let that = $(this); settimeout(function(){ var hovercolor = that.css('background-color'); $('#dh_style_28_1568884981239 .menustyle_28').append(``); },100); }); //=== viewid:lang_style_13_1568885477622 ===// $(document).ready(function(){ }); //=== viewid:lang_style_13_1568885477622 ===// $('#lang_style_13_1568885477622 .lang_main').mousemove(function(){ $('#lang_style_13_1568885477622 .lang_content').show(); }).mouseout(function(){ $('#lang_style_13_1568885477622 .lang_content').hide(); }); //=== viewid:banner_style_01_1569208962701 ===// $(document).ready(function(){ arrowshow(); $(window).resize(function(){ arrowshow(); }); // 箭头显示 function arrowshow(){ if(window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767) || navigator.useragent.indexof('mac os x') != -1){ $("#banner_style_01_1569208962701 .bannerstyle_1 .awesome-font").show().siblings().hide(); }else{ $("#banner_style_01_1569208962701 .bannerstyle_1 .awesome-font").hide().siblings().show(); } } }); //=== viewid:banner_style_01_1569208962701 ===// /* * banner 轮播图类 */ var intervaltimer; function banner(config) { this._default = { 'list':[], 'length':0, 'current':0, 'timer':undefined, // 计时器 'view':undefined, // 视图 'flick':undefined, // 圆点选择器 'duration':3, // 切换时间间隔 'animation':0.5 // 动画时间 }; config = $.extend(true, this._default, config); this.config = config; this.init(config); } banner.prototype.init = function(config) { this.animatestyle = 'normal'; // 动画效果 ( 根据动画效果, 不同的方法有不同的实现 ) this.direction = 'right'; // 当前滚动方向 this.view = this.config.view; this.config.length = this.config.list.length; this.config.flick = this.view ? this.view.find(".bannerstyle_1 .flicking_con > a") : undefined; }; // 计算下一个要显示的图片的索引 // by: 如果没有传入参数, 则使用配置中的数据this.config.current, 否则使用传入的参数 banner.prototype.nextindex = function(by) { by === undefined && (by = this.config.current); var next = this.direction == 'right' ? by + 1 : by - 1; next >= this.config.length && (next = 0); next < 0 && (next = this.config.length - 1); return next; }; //图片链接 $url_html = new array(); $i = 0; $url_len = 1; $url_html[0] = ""; $('#banner_style_01_1569208962701 a.img_url').attr('href',$url_html[$i]); // 跳到指定图片 banner.prototype.animateindex = function(index) { this.endanimate(); if(index >= 0 && index < this.config.length && this.config.current != index) { if(this.config.current < index) { this.direction = 'right'; this.config.current = index - 1; } else { this.direction = 'left'; this.config.current = index + 1; } this.showindex(this.config.current); this.startanimate(); } }; // 向右动画 banner.prototype.startanimateright = function() { this.direction = 'right'; this.startanimate(); }; // 向左动画 banner.prototype.startanimateleft = function() { this.direction = 'left'; this.startanimate(); }; // 结束动画 banner.prototype.endanimate = function() { cleartimeout(this.config.timer); }; // 结束动画 banner.prototype.hoverendanimate = function() { var that = this; intervaltimer = setinterval(function(){ cleartimeout(that.config.timer); },100); }; banner.prototype.startanimate = function() { switch(this.animatestyle) { case 'normal': // 默认效果 this.endanimate(); if(this.config.length > 1) { var prev = this.config.current, next = this.nextindex(), end = this.direction == 'right' ? {prev:"-100%", current:"100%"} : {prev:"100%", current:"-100%"}; // 前一个图片和当前图片的最后停留位置 this.config.flick.eq(next).addclass("on").siblings().removeclass("on"); // 执行动画 var banner = this; this.imgs.eq(prev).stop().animate({"left":end.prev}, this.config.animation, function(){ banner.config.timer = settimeout(function(){ banner.startanimate(); },banner.config.duration); }); this.imgs.eq(next).css({"left":end.current}).stop().animate({"left":"0%"}, this.config.animation); this.config.current = next; } break; case 'rotate-3d': // 3d旋转效果 this.endanimate(); this.updatebgimg(); if(this.config.length > 1) { var prev = this.config.current, next = this.nextindex(); this.config.flick.eq(next).addclass("on").siblings().removeclass("on"); this.config.current = next; this.parts.css("transform", "rotatex(" + ((this.direction == 'right' ? ++this.rotate : --this.rotate) * 90) + "deg)"); var banner = this; this.config.timer = settimeout(function(){ banner.startanimate(); },banner.config.duration); } $('#banner_style_01_1569208962701 a.img_url').attr('href',$url_html[this.config.current]); break; } }; // 指定显示的图片 banner.prototype.showindex = function(index) { switch(this.animatestyle) { case 'normal': // 默认效果 this.imgs.eq(index).css("left","0%").siblings(".img-item").css("left","100%"); this.config.flick.eq(index).addclass("on").siblings().removeclass("on"); break; case 'rotate-3d': // 3d旋转效果 this.updatefacebottontopimg(index); this.config.flick.eq(index).addclass("on").siblings().removeclass("on"); break; } }; /* * ******************************************** * 3d旋转效果 特有函数 begin */ // 每次旋转前都需要更新背部的图片 banner.prototype.updatebgimg = function() { // 计算背部要显示的图片 var bg_image_index = this.nextindex(this.nextindex()); // index: 计算背景图片当前显示在哪个img中( 总共有4个图片, 分别位于正面/底部/背部/顶部, 索引分别为0, 1, 2, 3 ) var c, index = (c = (this.rotate + 2) % 4) >= 0 ? c : c + 4; var banner = this; // console.log('第',index,'个面-使用更新为第',bg_image_index,'张图'); this.parts && this.parts.each(function () { $(this).find('.img:eq('+index+')').css({'background-image': 'url("'+banner.config.list[bg_image_index]+'")'}); }); }; // 更新正面/顶部/底部的图片 // index: 要显示哪张图片 // 备注: 因为总共有四个面的图片需要更新, 初始化时, 正面/顶部/底部的图片只需更新一次即可 (背部的图片在每次旋转前都需要更新) banner.prototype.updatefacebottontopimg = function(index) { // face, bottom, top: 计算正面/顶部/底部图片当前显示在哪个img中( 总共有4个图片, 分别位于正面/底部/背部/顶部, 索引分别为0, 1, 2, 3 ) var c, face = (c = this.rotate % 4) >= 0 ? c : c + 4, bottom, top; bottom = face + 1; bottom >= this.config.length && (bottom = 0); top = face - 1; top < 0 && (top = this.config.length - 1); var banner = this; this.parts && this.parts.each(function () { // console.log('第',face,'个面-使用更新为第',index,'张图'); $(this).find('.img:eq('+face+')').css({'background-image': 'url("'+banner.config.list[index]+'")'}); // console.log('第',bottom,'个面-使用更新为第',index < banner.config.length - 1 ? index + 1 : 0,'张图'); $(this).find('.img:eq('+bottom+')').css({'background-image': 'url("'+banner.config.list[index < banner.config.length - 1 ? index + 1 : 0]+'")'}); // console.log('第',top,'个面-使用更新为第',index > 0 ? index - 1 : banner.config.length - 1,'张图'); $(this).find('.img:eq('+top+')').css({'background-image': 'url("'+banner.config.list[index > 0 ? index - 1 : banner.config.length - 1]+'")'}); }); }; // 初始化旋转部分: 设置3d旋转的四个面的图片, index表示默认显示哪张图片 banner.prototype.initimgpart = function(index) { var banner = this; this.parts && this.parts.each(function () { $(this).find('.img').each(function (i) { var j = 0; switch (i) { case 0: j = index; break; // 正面 case 1: j = index + 1; break; // 底部 case 2: break; // 背部 case 3: j = index - 1; break; // 顶部 } j >= banner.config.length && (j = 0); j < 0 && (j = banner.config.length - 1); $(this).css({'background-image': 'url("'+banner.config.list[j]+'")', 'background-repeat':'no-repeat', 'background-color':'#fff'}); }); }); }; // 更新旋转部分: 之所以使用定时器, 是因为无法实时获取模块宽度 banner.prototype.updateimgpart = function() { this.parts && this.parts.each(function(index) { $(this).css({ "left":$(this).width() * index + "px" }); $(this).find(".img").css({ "background-position": -$(this).width() * index + "px" }); }); var banner = this; settimeout(function () { banner.updateimgpart(); }, 800); }; /* * 3d旋转效果 特有函数 end * ******************************************** */ // 图片数据 var list_banner_style_01_1569208962701 = []; list_banner_style_01_1569208962701.push('https://cdn.yun.sooce.cn/1/9958/jpg/1629170340284a79ca8f0cba2aa0c.jpg?version=1629170343'); var banner_banner_style_01_1569208962701; // 轮播图对象 $(function(){ // 创建轮播图 $arrhref = new array(); banner_banner_style_01_1569208962701 = new banner({ 'list':list_banner_style_01_1569208962701, 'view':$('#banner_style_01_1569208962701'), 'duration':parsefloat('3') * 1000, 'animation':parsefloat('0.5') * 1000 }); banner_banner_style_01_1569208962701.animatestyle = 'normal'; banner_banner_style_01_1569208962701.imgs = banner_banner_style_01_1569208962701.view.find(".bannerstyle_1 .main_image .img-list").children(".img-item"); banner_banner_style_01_1569208962701.view.find('a').each(function (i) { $(this).click(function () { if(!$(this).attr('href')) { return false; } }); }); banner_banner_style_01_1569208962701.view.find('a.picset').each(function(i){ $arrhref[i] = $(this).attr('href'); }); // 显示指定索引的图片 banner_banner_style_01_1569208962701.showindex(banner_banner_style_01_1569208962701.config.current); // 监听 点击圆点 banner_banner_style_01_1569208962701.config.flick.click(function(){ banner_banner_style_01_1569208962701.animateindex($(this).index()); $('#banner_style_01_1569208962701 a.img_url').attr('href',$url_html[$(this).index()]); $i = $(this).index(); return false; }); // 监听 鼠标悬浮时 banner_banner_style_01_1569208962701.view.hover( function(){ banner_banner_style_01_1569208962701.hoverendanimate(); banner_banner_style_01_1569208962701.view.find(".bannerstyle_1 .btn_prev, .bannerstyle_1 .btn_next").fadein(); }, function(){ clearinterval(intervaltimer); banner_banner_style_01_1569208962701.config.timer = settimeout(function(){ banner_banner_style_01_1569208962701.startanimateright(); },banner_banner_style_01_1569208962701.config.duration); banner_banner_style_01_1569208962701.view.find(".bannerstyle_1 .btn_prev, .bannerstyle_1 .btn_next").fadeout() } ); // 监听 点击左右按钮 banner_banner_style_01_1569208962701.view.find(".btn_prev").click(function() { banner_banner_style_01_1569208962701.startanimateleft(); }); banner_banner_style_01_1569208962701.view.find(".btn_next").click(function() { banner_banner_style_01_1569208962701.startanimateright(); }); // 监听 触摸事件 var touchval = null; document.addeventlistener("touchstart", function(e){ if($(e.target).is(banner_banner_style_01_1569208962701.view) || $(e.target).closest("#"+banner_banner_style_01_1569208962701.view.attr("id")).length > 0) { touchval = {}; touchval.downx = e.touches[0].clientx; // 记录触摸起始位置 } }, false); document.addeventlistener("touchmove", function(e){ if(touchval && touchval.downx) { touchval.movex = e.touches[0].clientx - touchval.downx; // 计算触摸中的偏移位置 } }, false); document.addeventlistener("touchend", function(e){ if(touchval && touchval.movex){ if(touchval.movex > 30){ banner_banner_style_01_1569208962701.startanimateleft(); // 触摸生效 if (e.preventdefault) { e.preventdefault(); } else { e.returnvalue = false; } }else if(touchval.movex < -30){ banner_banner_style_01_1569208962701.startanimateright(); // 触摸生效 if (e.preventdefault) { e.preventdefault(); } else { e.returnvalue = false; } } } touchval = null; }, false); // 运行 banner_banner_style_01_1569208962701.config.timer = settimeout(function(){ banner_banner_style_01_1569208962701.startanimateright(); }, banner_banner_style_01_1569208962701.config.duration); }); //=== viewid:homelink_style_01_1569209050311 ===// //-- $(function(){ var viewid="homelink_style_01_1569209050311"; var sys_url="viewid=homelink_style_01_1569209050311&name=homelink&style=style_01&langid=0&pageid=125057&viewctrl=default&isfb=1"; var moreparams=''; if(typeof(history.pushstate) != 'undefined'){ var hstate=json.stringify(history.state); if(hstate!='null'&& hstate!=null){ eval('var hjson = ' + hstate); moreparams=hjson.moreparamshomelink_style_01_1569209050311; } } requesturl(viewid,sys_url,moreparams); }); //-- //=== viewid:homelink_style_01_1569211067504,homelink_style_01_1569211269725,homelink_style_02_1568970597522,homelink_style_01_1569208592920,homelink_style_01_1569036903974,homelink_style_01_1590472812612,productlist_style_11_1590465383066,homelink_style_01_1569208860148,homelink_style_01_1590462097196,productlist_style_11_1590465271006,homelink_style_01_1569209050311 ===// //=== viewid:image_style_11_1590477594187 ===// $(function(){ let obj = $("#image_style_11_1590477594187"); let picitems = obj.find("li.imgitems"); let num = 0; let picbox; picitems.click(function(){ let toph = $(window).scrolltop(); let index = $(this).index(); let curpic = $(this).find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); curpicstyle = ''; curicon = ''; curiconstyle = 'display:none;'; }else{ curpic = ''; curpicstyle = 'display:none;'; curicon = $(this).find(".bbx-new-font").text(); curiconstyle = $(this).find(".bbx-new-font").attr('style'); } num = index; let html = "
"+curicon+"
×
"; let picboxhtml = $(html); //"+""+"为了躲开图片延时加载的代码替换 $("body").append(picboxhtml); picbox = $(".imgshowbox"); pdsize(); //判断下一张和上一张按钮的显示 if(picitems.length == 1){ $("body").find(".imgbutton>.nextimg,.imgbutton>.previmg").css("visibility","hidden") } if(picitems.length-1 == $(this).index()){ $("body").find(".imgbutton>.nextimg").css("visibility","hidden") } if($(this).index() == 0){ $("body").find(".imgbutton>.previmg").css("visibility","hidden") } //关闭 $("body").find(".imgbutton>.closeshowpic").click(function(){ $(".imgshowbox").remove(); $("body").removeclass("pos_fixed"); $(window).scrolltop(toph); }); //下一张 $("body").find(".imgbutton>.nextimg").click(function(){ $(".imgshowbox img").css("max-height","none"); let len = obj.find("li:has('.imgcont')").length; $(this).siblings().css("visibility","visible"); num++; if(num >= len){ num = len-1; } if(num == len-1){ $(this).css("visibility","hidden"); } curpics(); pdsize(); }); //上一张 $("body").find(".imgbutton>.previmg").click(function(){ $(".imgshowbox img").css("max-height","none"); $(this).siblings().css("visibility","visible"); num--; if(num <= 0){ num = 0; $(this).css("visibility","hidden"); } curpics(); pdsize(); }); }); //切换大图 function curpics(){ let that = obj.find("li").eq(num); let curpic = that.find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; let boximg = picbox.find("img"); let boxicon = picbox.find(".bbx-new-font"); if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); boximg.attr("src",curpic); boximg.show(0); boxicon.hide(0); }else{ curicon = that.find(".bbx-new-font").text(); curiconstyle = that.find(".bbx-new-font").attr('style'); boxicon.text(curicon); boxicon.attr('style',curiconstyle); boximg.hide(0); } } //判断展开显示效果 function pdsize(){ let imgh = picbox.find("img").height(); let winh = $(window).height(); if(imgh>winh){ $("body").addclass("pos_fixed"); picbox.addclass("scroll"); picbox.animate({"scrolltop":"0px"},200); }else{ $("body").removeclass("pos_fixed"); picbox.removeclass("scroll"); $(".imgshowbox img").css("max-height","80%"); } } }) //=== viewid:image_style_11_1590478135157 ===// $(function(){ let obj = $("#image_style_11_1590478135157"); let picitems = obj.find("li.imgitems"); let num = 0; let picbox; picitems.click(function(){ let toph = $(window).scrolltop(); let index = $(this).index(); let curpic = $(this).find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); curpicstyle = ''; curicon = ''; curiconstyle = 'display:none;'; }else{ curpic = ''; curpicstyle = 'display:none;'; curicon = $(this).find(".bbx-new-font").text(); curiconstyle = $(this).find(".bbx-new-font").attr('style'); } num = index; let html = "
"+curicon+"
×
"; let picboxhtml = $(html); //"+""+"为了躲开图片延时加载的代码替换 $("body").append(picboxhtml); picbox = $(".imgshowbox"); pdsize(); //判断下一张和上一张按钮的显示 if(picitems.length == 1){ $("body").find(".imgbutton>.nextimg,.imgbutton>.previmg").css("visibility","hidden") } if(picitems.length-1 == $(this).index()){ $("body").find(".imgbutton>.nextimg").css("visibility","hidden") } if($(this).index() == 0){ $("body").find(".imgbutton>.previmg").css("visibility","hidden") } //关闭 $("body").find(".imgbutton>.closeshowpic").click(function(){ $(".imgshowbox").remove(); $("body").removeclass("pos_fixed"); $(window).scrolltop(toph); }); //下一张 $("body").find(".imgbutton>.nextimg").click(function(){ $(".imgshowbox img").css("max-height","none"); let len = obj.find("li:has('.imgcont')").length; $(this).siblings().css("visibility","visible"); num++; if(num >= len){ num = len-1; } if(num == len-1){ $(this).css("visibility","hidden"); } curpics(); pdsize(); }); //上一张 $("body").find(".imgbutton>.previmg").click(function(){ $(".imgshowbox img").css("max-height","none"); $(this).siblings().css("visibility","visible"); num--; if(num <= 0){ num = 0; $(this).css("visibility","hidden"); } curpics(); pdsize(); }); }); //切换大图 function curpics(){ let that = obj.find("li").eq(num); let curpic = that.find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; let boximg = picbox.find("img"); let boxicon = picbox.find(".bbx-new-font"); if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); boximg.attr("src",curpic); boximg.show(0); boxicon.hide(0); }else{ curicon = that.find(".bbx-new-font").text(); curiconstyle = that.find(".bbx-new-font").attr('style'); boxicon.text(curicon); boxicon.attr('style',curiconstyle); boximg.hide(0); } } //判断展开显示效果 function pdsize(){ let imgh = picbox.find("img").height(); let winh = $(window).height(); if(imgh>winh){ $("body").addclass("pos_fixed"); picbox.addclass("scroll"); picbox.animate({"scrolltop":"0px"},200); }else{ $("body").removeclass("pos_fixed"); picbox.removeclass("scroll"); $(".imgshowbox img").css("max-height","80%"); } } }) //=== viewid:image_style_11_1590478370834 ===// var sys_url_image_style_11_1590478370834="viewid=image_style_11_1590478370834&name=image&style=style_11&langid=0&pageid=125057&viewctrl=photo"; //=== viewid:image_style_11_1590478370834 ===// $(function(){ let obj = $("#image_style_11_1590478370834"); let picitems = obj.find("li.imgitems"); let num = 0; let picbox; picitems.click(function(){ let toph = $(window).scrolltop(); let index = $(this).index(); let curpic = $(this).find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); curpicstyle = ''; curicon = ''; curiconstyle = 'display:none;'; }else{ curpic = ''; curpicstyle = 'display:none;'; curicon = $(this).find(".bbx-new-font").text(); curiconstyle = $(this).find(".bbx-new-font").attr('style'); } num = index; let html = "
"+curicon+"
×
"; let picboxhtml = $(html); //"+""+"为了躲开图片延时加载的代码替换 $("body").append(picboxhtml); picbox = $(".imgshowbox"); pdsize(); //判断下一张和上一张按钮的显示 if(picitems.length == 1){ $("body").find(".imgbutton>.nextimg,.imgbutton>.previmg").css("visibility","hidden") } if(picitems.length-1 == $(this).index()){ $("body").find(".imgbutton>.nextimg").css("visibility","hidden") } if($(this).index() == 0){ $("body").find(".imgbutton>.previmg").css("visibility","hidden") } //关闭 $("body").find(".imgbutton>.closeshowpic").click(function(){ $(".imgshowbox").remove(); $("body").removeclass("pos_fixed"); $(window).scrolltop(toph); }); //下一张 $("body").find(".imgbutton>.nextimg").click(function(){ $(".imgshowbox img").css("max-height","none"); let len = obj.find("li:has('.imgcont')").length; $(this).siblings().css("visibility","visible"); num++; if(num >= len){ num = len-1; } if(num == len-1){ $(this).css("visibility","hidden"); } curpics(); pdsize(); }); //上一张 $("body").find(".imgbutton>.previmg").click(function(){ $(".imgshowbox img").css("max-height","none"); $(this).siblings().css("visibility","visible"); num--; if(num <= 0){ num = 0; $(this).css("visibility","hidden"); } curpics(); pdsize(); }); }); //切换大图 function curpics(){ let that = obj.find("li").eq(num); let curpic = that.find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; let boximg = picbox.find("img"); let boxicon = picbox.find(".bbx-new-font"); if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); boximg.attr("src",curpic); boximg.show(0); boxicon.hide(0); }else{ curicon = that.find(".bbx-new-font").text(); curiconstyle = that.find(".bbx-new-font").attr('style'); boxicon.text(curicon); boxicon.attr('style',curiconstyle); boximg.hide(0); } } //判断展开显示效果 function pdsize(){ let imgh = picbox.find("img").height(); let winh = $(window).height(); if(imgh>winh){ $("body").addclass("pos_fixed"); picbox.addclass("scroll"); picbox.animate({"scrolltop":"0px"},200); }else{ $("body").removeclass("pos_fixed"); picbox.removeclass("scroll"); $(".imgshowbox img").css("max-height","80%"); } } }) //=== viewid:image_style_11_1590478532323 ===// var sys_url_image_style_11_1590478532323="viewid=image_style_11_1590478532323&name=image&style=style_11&langid=0&pageid=125057&viewctrl=photo"; //=== viewid:image_style_11_1590478532323 ===// $(function(){ let obj = $("#image_style_11_1590478532323"); let picitems = obj.find("li.imgitems"); let num = 0; let picbox; picitems.click(function(){ let toph = $(window).scrolltop(); let index = $(this).index(); let curpic = $(this).find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); curpicstyle = ''; curicon = ''; curiconstyle = 'display:none;'; }else{ curpic = ''; curpicstyle = 'display:none;'; curicon = $(this).find(".bbx-new-font").text(); curiconstyle = $(this).find(".bbx-new-font").attr('style'); } num = index; let html = "
"+curicon+"
×
"; let picboxhtml = $(html); //"+""+"为了躲开图片延时加载的代码替换 $("body").append(picboxhtml); picbox = $(".imgshowbox"); pdsize(); //判断下一张和上一张按钮的显示 if(picitems.length == 1){ $("body").find(".imgbutton>.nextimg,.imgbutton>.previmg").css("visibility","hidden") } if(picitems.length-1 == $(this).index()){ $("body").find(".imgbutton>.nextimg").css("visibility","hidden") } if($(this).index() == 0){ $("body").find(".imgbutton>.previmg").css("visibility","hidden") } //关闭 $("body").find(".imgbutton>.closeshowpic").click(function(){ $(".imgshowbox").remove(); $("body").removeclass("pos_fixed"); $(window).scrolltop(toph); }); //下一张 $("body").find(".imgbutton>.nextimg").click(function(){ $(".imgshowbox img").css("max-height","none"); let len = obj.find("li:has('.imgcont')").length; $(this).siblings().css("visibility","visible"); num++; if(num >= len){ num = len-1; } if(num == len-1){ $(this).css("visibility","hidden"); } curpics(); pdsize(); }); //上一张 $("body").find(".imgbutton>.previmg").click(function(){ $(".imgshowbox img").css("max-height","none"); $(this).siblings().css("visibility","visible"); num--; if(num <= 0){ num = 0; $(this).css("visibility","hidden"); } curpics(); pdsize(); }); }); //切换大图 function curpics(){ let that = obj.find("li").eq(num); let curpic = that.find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; let boximg = picbox.find("img"); let boxicon = picbox.find(".bbx-new-font"); if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); boximg.attr("src",curpic); boximg.show(0); boxicon.hide(0); }else{ curicon = that.find(".bbx-new-font").text(); curiconstyle = that.find(".bbx-new-font").attr('style'); boxicon.text(curicon); boxicon.attr('style',curiconstyle); boximg.hide(0); } } //判断展开显示效果 function pdsize(){ let imgh = picbox.find("img").height(); let winh = $(window).height(); if(imgh>winh){ $("body").addclass("pos_fixed"); picbox.addclass("scroll"); picbox.animate({"scrolltop":"0px"},200); }else{ $("body").removeclass("pos_fixed"); picbox.removeclass("scroll"); $(".imgshowbox img").css("max-height","80%"); } } }) //=== viewid:image_style_11_1590478842804 ===// var sys_url_image_style_11_1590478842804="viewid=image_style_11_1590478842804&name=image&style=style_11&langid=0&pageid=125057&viewctrl=photo"; //=== viewid:image_style_11_1590478842804 ===// $(function(){ let obj = $("#image_style_11_1590478842804"); let picitems = obj.find("li.imgitems"); let num = 0; let picbox; picitems.click(function(){ let toph = $(window).scrolltop(); let index = $(this).index(); let curpic = $(this).find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); curpicstyle = ''; curicon = ''; curiconstyle = 'display:none;'; }else{ curpic = ''; curpicstyle = 'display:none;'; curicon = $(this).find(".bbx-new-font").text(); curiconstyle = $(this).find(".bbx-new-font").attr('style'); } num = index; let html = "
"+curicon+"
×
"; let picboxhtml = $(html); //"+""+"为了躲开图片延时加载的代码替换 $("body").append(picboxhtml); picbox = $(".imgshowbox"); pdsize(); //判断下一张和上一张按钮的显示 if(picitems.length == 1){ $("body").find(".imgbutton>.nextimg,.imgbutton>.previmg").css("visibility","hidden") } if(picitems.length-1 == $(this).index()){ $("body").find(".imgbutton>.nextimg").css("visibility","hidden") } if($(this).index() == 0){ $("body").find(".imgbutton>.previmg").css("visibility","hidden") } //关闭 $("body").find(".imgbutton>.closeshowpic").click(function(){ $(".imgshowbox").remove(); $("body").removeclass("pos_fixed"); $(window).scrolltop(toph); }); //下一张 $("body").find(".imgbutton>.nextimg").click(function(){ $(".imgshowbox img").css("max-height","none"); let len = obj.find("li:has('.imgcont')").length; $(this).siblings().css("visibility","visible"); num++; if(num >= len){ num = len-1; } if(num == len-1){ $(this).css("visibility","hidden"); } curpics(); pdsize(); }); //上一张 $("body").find(".imgbutton>.previmg").click(function(){ $(".imgshowbox img").css("max-height","none"); $(this).siblings().css("visibility","visible"); num--; if(num <= 0){ num = 0; $(this).css("visibility","hidden"); } curpics(); pdsize(); }); }); //切换大图 function curpics(){ let that = obj.find("li").eq(num); let curpic = that.find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; let boximg = picbox.find("img"); let boxicon = picbox.find(".bbx-new-font"); if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); boximg.attr("src",curpic); boximg.show(0); boxicon.hide(0); }else{ curicon = that.find(".bbx-new-font").text(); curiconstyle = that.find(".bbx-new-font").attr('style'); boxicon.text(curicon); boxicon.attr('style',curiconstyle); boximg.hide(0); } } //判断展开显示效果 function pdsize(){ let imgh = picbox.find("img").height(); let winh = $(window).height(); if(imgh>winh){ $("body").addclass("pos_fixed"); picbox.addclass("scroll"); picbox.animate({"scrolltop":"0px"},200); }else{ $("body").removeclass("pos_fixed"); picbox.removeclass("scroll"); $(".imgshowbox img").css("max-height","80%"); } } }) //=== viewid:image_style_11_1590479082864 ===// $(function(){ let obj = $("#image_style_11_1590479082864"); let picitems = obj.find("li.imgitems"); let num = 0; let picbox; picitems.click(function(){ let toph = $(window).scrolltop(); let index = $(this).index(); let curpic = $(this).find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); curpicstyle = ''; curicon = ''; curiconstyle = 'display:none;'; }else{ curpic = ''; curpicstyle = 'display:none;'; curicon = $(this).find(".bbx-new-font").text(); curiconstyle = $(this).find(".bbx-new-font").attr('style'); } num = index; let html = "
"+curicon+"
×
"; let picboxhtml = $(html); //"+""+"为了躲开图片延时加载的代码替换 $("body").append(picboxhtml); picbox = $(".imgshowbox"); pdsize(); //判断下一张和上一张按钮的显示 if(picitems.length == 1){ $("body").find(".imgbutton>.nextimg,.imgbutton>.previmg").css("visibility","hidden") } if(picitems.length-1 == $(this).index()){ $("body").find(".imgbutton>.nextimg").css("visibility","hidden") } if($(this).index() == 0){ $("body").find(".imgbutton>.previmg").css("visibility","hidden") } //关闭 $("body").find(".imgbutton>.closeshowpic").click(function(){ $(".imgshowbox").remove(); $("body").removeclass("pos_fixed"); $(window).scrolltop(toph); }); //下一张 $("body").find(".imgbutton>.nextimg").click(function(){ $(".imgshowbox img").css("max-height","none"); let len = obj.find("li:has('.imgcont')").length; $(this).siblings().css("visibility","visible"); num++; if(num >= len){ num = len-1; } if(num == len-1){ $(this).css("visibility","hidden"); } curpics(); pdsize(); }); //上一张 $("body").find(".imgbutton>.previmg").click(function(){ $(".imgshowbox img").css("max-height","none"); $(this).siblings().css("visibility","visible"); num--; if(num <= 0){ num = 0; $(this).css("visibility","hidden"); } curpics(); pdsize(); }); }); //切换大图 function curpics(){ let that = obj.find("li").eq(num); let curpic = that.find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; let boximg = picbox.find("img"); let boxicon = picbox.find(".bbx-new-font"); if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); boximg.attr("src",curpic); boximg.show(0); boxicon.hide(0); }else{ curicon = that.find(".bbx-new-font").text(); curiconstyle = that.find(".bbx-new-font").attr('style'); boxicon.text(curicon); boxicon.attr('style',curiconstyle); boximg.hide(0); } } //判断展开显示效果 function pdsize(){ let imgh = picbox.find("img").height(); let winh = $(window).height(); if(imgh>winh){ $("body").addclass("pos_fixed"); picbox.addclass("scroll"); picbox.animate({"scrolltop":"0px"},200); }else{ $("body").removeclass("pos_fixed"); picbox.removeclass("scroll"); $(".imgshowbox img").css("max-height","80%"); } } }) //=== viewid:image_style_11_1590479524169 ===// var sys_url_image_style_11_1590479524169="viewid=image_style_11_1590479524169&name=image&style=style_11&langid=0&pageid=125057&viewctrl=photo"; //=== viewid:image_style_11_1590479524169 ===// $(function(){ let obj = $("#image_style_11_1590479524169"); let picitems = obj.find("li.imgitems"); let num = 0; let picbox; picitems.click(function(){ let toph = $(window).scrolltop(); let index = $(this).index(); let curpic = $(this).find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); curpicstyle = ''; curicon = ''; curiconstyle = 'display:none;'; }else{ curpic = ''; curpicstyle = 'display:none;'; curicon = $(this).find(".bbx-new-font").text(); curiconstyle = $(this).find(".bbx-new-font").attr('style'); } num = index; let html = "
"+curicon+"
×
"; let picboxhtml = $(html); //"+""+"为了躲开图片延时加载的代码替换 $("body").append(picboxhtml); picbox = $(".imgshowbox"); pdsize(); //判断下一张和上一张按钮的显示 if(picitems.length == 1){ $("body").find(".imgbutton>.nextimg,.imgbutton>.previmg").css("visibility","hidden") } if(picitems.length-1 == $(this).index()){ $("body").find(".imgbutton>.nextimg").css("visibility","hidden") } if($(this).index() == 0){ $("body").find(".imgbutton>.previmg").css("visibility","hidden") } //关闭 $("body").find(".imgbutton>.closeshowpic").click(function(){ $(".imgshowbox").remove(); $("body").removeclass("pos_fixed"); $(window).scrolltop(toph); }); //下一张 $("body").find(".imgbutton>.nextimg").click(function(){ $(".imgshowbox img").css("max-height","none"); let len = obj.find("li:has('.imgcont')").length; $(this).siblings().css("visibility","visible"); num++; if(num >= len){ num = len-1; } if(num == len-1){ $(this).css("visibility","hidden"); } curpics(); pdsize(); }); //上一张 $("body").find(".imgbutton>.previmg").click(function(){ $(".imgshowbox img").css("max-height","none"); $(this).siblings().css("visibility","visible"); num--; if(num <= 0){ num = 0; $(this).css("visibility","hidden"); } curpics(); pdsize(); }); }); //切换大图 function curpics(){ let that = obj.find("li").eq(num); let curpic = that.find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; let boximg = picbox.find("img"); let boxicon = picbox.find(".bbx-new-font"); if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); boximg.attr("src",curpic); boximg.show(0); boxicon.hide(0); }else{ curicon = that.find(".bbx-new-font").text(); curiconstyle = that.find(".bbx-new-font").attr('style'); boxicon.text(curicon); boxicon.attr('style',curiconstyle); boximg.hide(0); } } //判断展开显示效果 function pdsize(){ let imgh = picbox.find("img").height(); let winh = $(window).height(); if(imgh>winh){ $("body").addclass("pos_fixed"); picbox.addclass("scroll"); picbox.animate({"scrolltop":"0px"},200); }else{ $("body").removeclass("pos_fixed"); picbox.removeclass("scroll"); $(".imgshowbox img").css("max-height","80%"); } } }) //=== viewid:image_style_11_1590479652598 ===// var sys_url_image_style_11_1590479652598="viewid=image_style_11_1590479652598&name=image&style=style_11&langid=0&pageid=125057&viewctrl=photo"; //=== viewid:image_style_11_1590479652598 ===// $(function(){ let obj = $("#image_style_11_1590479652598"); let picitems = obj.find("li.imgitems"); let num = 0; let picbox; picitems.click(function(){ let toph = $(window).scrolltop(); let index = $(this).index(); let curpic = $(this).find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); curpicstyle = ''; curicon = ''; curiconstyle = 'display:none;'; }else{ curpic = ''; curpicstyle = 'display:none;'; curicon = $(this).find(".bbx-new-font").text(); curiconstyle = $(this).find(".bbx-new-font").attr('style'); } num = index; let html = "
"+curicon+"
×
"; let picboxhtml = $(html); //"+""+"为了躲开图片延时加载的代码替换 $("body").append(picboxhtml); picbox = $(".imgshowbox"); pdsize(); //判断下一张和上一张按钮的显示 if(picitems.length == 1){ $("body").find(".imgbutton>.nextimg,.imgbutton>.previmg").css("visibility","hidden") } if(picitems.length-1 == $(this).index()){ $("body").find(".imgbutton>.nextimg").css("visibility","hidden") } if($(this).index() == 0){ $("body").find(".imgbutton>.previmg").css("visibility","hidden") } //关闭 $("body").find(".imgbutton>.closeshowpic").click(function(){ $(".imgshowbox").remove(); $("body").removeclass("pos_fixed"); $(window).scrolltop(toph); }); //下一张 $("body").find(".imgbutton>.nextimg").click(function(){ $(".imgshowbox img").css("max-height","none"); let len = obj.find("li:has('.imgcont')").length; $(this).siblings().css("visibility","visible"); num++; if(num >= len){ num = len-1; } if(num == len-1){ $(this).css("visibility","hidden"); } curpics(); pdsize(); }); //上一张 $("body").find(".imgbutton>.previmg").click(function(){ $(".imgshowbox img").css("max-height","none"); $(this).siblings().css("visibility","visible"); num--; if(num <= 0){ num = 0; $(this).css("visibility","hidden"); } curpics(); pdsize(); }); }); //切换大图 function curpics(){ let that = obj.find("li").eq(num); let curpic = that.find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; let boximg = picbox.find("img"); let boxicon = picbox.find(".bbx-new-font"); if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); boximg.attr("src",curpic); boximg.show(0); boxicon.hide(0); }else{ curicon = that.find(".bbx-new-font").text(); curiconstyle = that.find(".bbx-new-font").attr('style'); boxicon.text(curicon); boxicon.attr('style',curiconstyle); boximg.hide(0); } } //判断展开显示效果 function pdsize(){ let imgh = picbox.find("img").height(); let winh = $(window).height(); if(imgh>winh){ $("body").addclass("pos_fixed"); picbox.addclass("scroll"); picbox.animate({"scrolltop":"0px"},200); }else{ $("body").removeclass("pos_fixed"); picbox.removeclass("scroll"); $(".imgshowbox img").css("max-height","80%"); } } }) //=== viewid:image_style_11_1590479741528 ===// $(function(){ let obj = $("#image_style_11_1590479741528"); let picitems = obj.find("li.imgitems"); let num = 0; let picbox; picitems.click(function(){ let toph = $(window).scrolltop(); let index = $(this).index(); let curpic = $(this).find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); curpicstyle = ''; curicon = ''; curiconstyle = 'display:none;'; }else{ curpic = ''; curpicstyle = 'display:none;'; curicon = $(this).find(".bbx-new-font").text(); curiconstyle = $(this).find(".bbx-new-font").attr('style'); } num = index; let html = "
"+curicon+"
×
"; let picboxhtml = $(html); //"+""+"为了躲开图片延时加载的代码替换 $("body").append(picboxhtml); picbox = $(".imgshowbox"); pdsize(); //判断下一张和上一张按钮的显示 if(picitems.length == 1){ $("body").find(".imgbutton>.nextimg,.imgbutton>.previmg").css("visibility","hidden") } if(picitems.length-1 == $(this).index()){ $("body").find(".imgbutton>.nextimg").css("visibility","hidden") } if($(this).index() == 0){ $("body").find(".imgbutton>.previmg").css("visibility","hidden") } //关闭 $("body").find(".imgbutton>.closeshowpic").click(function(){ $(".imgshowbox").remove(); $("body").removeclass("pos_fixed"); $(window).scrolltop(toph); }); //下一张 $("body").find(".imgbutton>.nextimg").click(function(){ $(".imgshowbox img").css("max-height","none"); let len = obj.find("li:has('.imgcont')").length; $(this).siblings().css("visibility","visible"); num++; if(num >= len){ num = len-1; } if(num == len-1){ $(this).css("visibility","hidden"); } curpics(); pdsize(); }); //上一张 $("body").find(".imgbutton>.previmg").click(function(){ $(".imgshowbox img").css("max-height","none"); $(this).siblings().css("visibility","visible"); num--; if(num <= 0){ num = 0; $(this).css("visibility","hidden"); } curpics(); pdsize(); }); }); //切换大图 function curpics(){ let that = obj.find("li").eq(num); let curpic = that.find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; let boximg = picbox.find("img"); let boxicon = picbox.find(".bbx-new-font"); if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); boximg.attr("src",curpic); boximg.show(0); boxicon.hide(0); }else{ curicon = that.find(".bbx-new-font").text(); curiconstyle = that.find(".bbx-new-font").attr('style'); boxicon.text(curicon); boxicon.attr('style',curiconstyle); boximg.hide(0); } } //判断展开显示效果 function pdsize(){ let imgh = picbox.find("img").height(); let winh = $(window).height(); if(imgh>winh){ $("body").addclass("pos_fixed"); picbox.addclass("scroll"); picbox.animate({"scrolltop":"0px"},200); }else{ $("body").removeclass("pos_fixed"); picbox.removeclass("scroll"); $(".imgshowbox img").css("max-height","80%"); } } }) //=== viewid:image_style_11_1590479834584 ===// var sys_url_image_style_11_1590479834584="viewid=image_style_11_1590479834584&name=image&style=style_11&langid=0&pageid=125057&viewctrl=photo"; //=== viewid:image_style_11_1590479834584 ===// $(function(){ let obj = $("#image_style_11_1590479834584"); let picitems = obj.find("li.imgitems"); let num = 0; let picbox; picitems.click(function(){ let toph = $(window).scrolltop(); let index = $(this).index(); let curpic = $(this).find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); curpicstyle = ''; curicon = ''; curiconstyle = 'display:none;'; }else{ curpic = ''; curpicstyle = 'display:none;'; curicon = $(this).find(".bbx-new-font").text(); curiconstyle = $(this).find(".bbx-new-font").attr('style'); } num = index; let html = "
"+curicon+"
×
"; let picboxhtml = $(html); //"+""+"为了躲开图片延时加载的代码替换 $("body").append(picboxhtml); picbox = $(".imgshowbox"); pdsize(); //判断下一张和上一张按钮的显示 if(picitems.length == 1){ $("body").find(".imgbutton>.nextimg,.imgbutton>.previmg").css("visibility","hidden") } if(picitems.length-1 == $(this).index()){ $("body").find(".imgbutton>.nextimg").css("visibility","hidden") } if($(this).index() == 0){ $("body").find(".imgbutton>.previmg").css("visibility","hidden") } //关闭 $("body").find(".imgbutton>.closeshowpic").click(function(){ $(".imgshowbox").remove(); $("body").removeclass("pos_fixed"); $(window).scrolltop(toph); }); //下一张 $("body").find(".imgbutton>.nextimg").click(function(){ $(".imgshowbox img").css("max-height","none"); let len = obj.find("li:has('.imgcont')").length; $(this).siblings().css("visibility","visible"); num++; if(num >= len){ num = len-1; } if(num == len-1){ $(this).css("visibility","hidden"); } curpics(); pdsize(); }); //上一张 $("body").find(".imgbutton>.previmg").click(function(){ $(".imgshowbox img").css("max-height","none"); $(this).siblings().css("visibility","visible"); num--; if(num <= 0){ num = 0; $(this).css("visibility","hidden"); } curpics(); pdsize(); }); }); //切换大图 function curpics(){ let that = obj.find("li").eq(num); let curpic = that.find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; let boximg = picbox.find("img"); let boxicon = picbox.find(".bbx-new-font"); if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); boximg.attr("src",curpic); boximg.show(0); boxicon.hide(0); }else{ curicon = that.find(".bbx-new-font").text(); curiconstyle = that.find(".bbx-new-font").attr('style'); boxicon.text(curicon); boxicon.attr('style',curiconstyle); boximg.hide(0); } } //判断展开显示效果 function pdsize(){ let imgh = picbox.find("img").height(); let winh = $(window).height(); if(imgh>winh){ $("body").addclass("pos_fixed"); picbox.addclass("scroll"); picbox.animate({"scrolltop":"0px"},200); }else{ $("body").removeclass("pos_fixed"); picbox.removeclass("scroll"); $(".imgshowbox img").css("max-height","80%"); } } }) //=== viewid:image_style_11_1590479927169 ===// $(function(){ let obj = $("#image_style_11_1590479927169"); let picitems = obj.find("li.imgitems"); let num = 0; let picbox; picitems.click(function(){ let toph = $(window).scrolltop(); let index = $(this).index(); let curpic = $(this).find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); curpicstyle = ''; curicon = ''; curiconstyle = 'display:none;'; }else{ curpic = ''; curpicstyle = 'display:none;'; curicon = $(this).find(".bbx-new-font").text(); curiconstyle = $(this).find(".bbx-new-font").attr('style'); } num = index; let html = "
"+curicon+"
×
"; let picboxhtml = $(html); //"+""+"为了躲开图片延时加载的代码替换 $("body").append(picboxhtml); picbox = $(".imgshowbox"); pdsize(); //判断下一张和上一张按钮的显示 if(picitems.length == 1){ $("body").find(".imgbutton>.nextimg,.imgbutton>.previmg").css("visibility","hidden") } if(picitems.length-1 == $(this).index()){ $("body").find(".imgbutton>.nextimg").css("visibility","hidden") } if($(this).index() == 0){ $("body").find(".imgbutton>.previmg").css("visibility","hidden") } //关闭 $("body").find(".imgbutton>.closeshowpic").click(function(){ $(".imgshowbox").remove(); $("body").removeclass("pos_fixed"); $(window).scrolltop(toph); }); //下一张 $("body").find(".imgbutton>.nextimg").click(function(){ $(".imgshowbox img").css("max-height","none"); let len = obj.find("li:has('.imgcont')").length; $(this).siblings().css("visibility","visible"); num++; if(num >= len){ num = len-1; } if(num == len-1){ $(this).css("visibility","hidden"); } curpics(); pdsize(); }); //上一张 $("body").find(".imgbutton>.previmg").click(function(){ $(".imgshowbox img").css("max-height","none"); $(this).siblings().css("visibility","visible"); num--; if(num <= 0){ num = 0; $(this).css("visibility","hidden"); } curpics(); pdsize(); }); }); //切换大图 function curpics(){ let that = obj.find("li").eq(num); let curpic = that.find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; let boximg = picbox.find("img"); let boxicon = picbox.find(".bbx-new-font"); if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); boximg.attr("src",curpic); boximg.show(0); boxicon.hide(0); }else{ curicon = that.find(".bbx-new-font").text(); curiconstyle = that.find(".bbx-new-font").attr('style'); boxicon.text(curicon); boxicon.attr('style',curiconstyle); boximg.hide(0); } } //判断展开显示效果 function pdsize(){ let imgh = picbox.find("img").height(); let winh = $(window).height(); if(imgh>winh){ $("body").addclass("pos_fixed"); picbox.addclass("scroll"); picbox.animate({"scrolltop":"0px"},200); }else{ $("body").removeclass("pos_fixed"); picbox.removeclass("scroll"); $(".imgshowbox img").css("max-height","80%"); } } }) //=== viewid:image_style_11_1590479999865 ===// $(function(){ let obj = $("#image_style_11_1590479999865"); let picitems = obj.find("li.imgitems"); let num = 0; let picbox; picitems.click(function(){ let toph = $(window).scrolltop(); let index = $(this).index(); let curpic = $(this).find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); curpicstyle = ''; curicon = ''; curiconstyle = 'display:none;'; }else{ curpic = ''; curpicstyle = 'display:none;'; curicon = $(this).find(".bbx-new-font").text(); curiconstyle = $(this).find(".bbx-new-font").attr('style'); } num = index; let html = "
"+curicon+"
×
"; let picboxhtml = $(html); //"+""+"为了躲开图片延时加载的代码替换 $("body").append(picboxhtml); picbox = $(".imgshowbox"); pdsize(); //判断下一张和上一张按钮的显示 if(picitems.length == 1){ $("body").find(".imgbutton>.nextimg,.imgbutton>.previmg").css("visibility","hidden") } if(picitems.length-1 == $(this).index()){ $("body").find(".imgbutton>.nextimg").css("visibility","hidden") } if($(this).index() == 0){ $("body").find(".imgbutton>.previmg").css("visibility","hidden") } //关闭 $("body").find(".imgbutton>.closeshowpic").click(function(){ $(".imgshowbox").remove(); $("body").removeclass("pos_fixed"); $(window).scrolltop(toph); }); //下一张 $("body").find(".imgbutton>.nextimg").click(function(){ $(".imgshowbox img").css("max-height","none"); let len = obj.find("li:has('.imgcont')").length; $(this).siblings().css("visibility","visible"); num++; if(num >= len){ num = len-1; } if(num == len-1){ $(this).css("visibility","hidden"); } curpics(); pdsize(); }); //上一张 $("body").find(".imgbutton>.previmg").click(function(){ $(".imgshowbox img").css("max-height","none"); $(this).siblings().css("visibility","visible"); num--; if(num <= 0){ num = 0; $(this).css("visibility","hidden"); } curpics(); pdsize(); }); }); //切换大图 function curpics(){ let that = obj.find("li").eq(num); let curpic = that.find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; let boximg = picbox.find("img"); let boxicon = picbox.find(".bbx-new-font"); if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); boximg.attr("src",curpic); boximg.show(0); boxicon.hide(0); }else{ curicon = that.find(".bbx-new-font").text(); curiconstyle = that.find(".bbx-new-font").attr('style'); boxicon.text(curicon); boxicon.attr('style',curiconstyle); boximg.hide(0); } } //判断展开显示效果 function pdsize(){ let imgh = picbox.find("img").height(); let winh = $(window).height(); if(imgh>winh){ $("body").addclass("pos_fixed"); picbox.addclass("scroll"); picbox.animate({"scrolltop":"0px"},200); }else{ $("body").removeclass("pos_fixed"); picbox.removeclass("scroll"); $(".imgshowbox img").css("max-height","80%"); } } }) //=== viewid:image_style_11_1590480054313 ===// var sys_url_image_style_11_1590480054313="viewid=image_style_11_1590480054313&name=image&style=style_11&langid=0&pageid=125057&viewctrl=photo"; //=== viewid:image_style_11_1590480054313 ===// $(function(){ let obj = $("#image_style_11_1590480054313"); let picitems = obj.find("li.imgitems"); let num = 0; let picbox; picitems.click(function(){ let toph = $(window).scrolltop(); let index = $(this).index(); let curpic = $(this).find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); curpicstyle = ''; curicon = ''; curiconstyle = 'display:none;'; }else{ curpic = ''; curpicstyle = 'display:none;'; curicon = $(this).find(".bbx-new-font").text(); curiconstyle = $(this).find(".bbx-new-font").attr('style'); } num = index; let html = "
"+curicon+"
×
"; let picboxhtml = $(html); //"+""+"为了躲开图片延时加载的代码替换 $("body").append(picboxhtml); picbox = $(".imgshowbox"); pdsize(); //判断下一张和上一张按钮的显示 if(picitems.length == 1){ $("body").find(".imgbutton>.nextimg,.imgbutton>.previmg").css("visibility","hidden") } if(picitems.length-1 == $(this).index()){ $("body").find(".imgbutton>.nextimg").css("visibility","hidden") } if($(this).index() == 0){ $("body").find(".imgbutton>.previmg").css("visibility","hidden") } //关闭 $("body").find(".imgbutton>.closeshowpic").click(function(){ $(".imgshowbox").remove(); $("body").removeclass("pos_fixed"); $(window).scrolltop(toph); }); //下一张 $("body").find(".imgbutton>.nextimg").click(function(){ $(".imgshowbox img").css("max-height","none"); let len = obj.find("li:has('.imgcont')").length; $(this).siblings().css("visibility","visible"); num++; if(num >= len){ num = len-1; } if(num == len-1){ $(this).css("visibility","hidden"); } curpics(); pdsize(); }); //上一张 $("body").find(".imgbutton>.previmg").click(function(){ $(".imgshowbox img").css("max-height","none"); $(this).siblings().css("visibility","visible"); num--; if(num <= 0){ num = 0; $(this).css("visibility","hidden"); } curpics(); pdsize(); }); }); //切换大图 function curpics(){ let that = obj.find("li").eq(num); let curpic = that.find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; let boximg = picbox.find("img"); let boxicon = picbox.find(".bbx-new-font"); if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); boximg.attr("src",curpic); boximg.show(0); boxicon.hide(0); }else{ curicon = that.find(".bbx-new-font").text(); curiconstyle = that.find(".bbx-new-font").attr('style'); boxicon.text(curicon); boxicon.attr('style',curiconstyle); boximg.hide(0); } } //判断展开显示效果 function pdsize(){ let imgh = picbox.find("img").height(); let winh = $(window).height(); if(imgh>winh){ $("body").addclass("pos_fixed"); picbox.addclass("scroll"); picbox.animate({"scrolltop":"0px"},200); }else{ $("body").removeclass("pos_fixed"); picbox.removeclass("scroll"); $(".imgshowbox img").css("max-height","80%"); } } }) //=== viewid:image_style_11_1590480133634 ===// $(function(){ let obj = $("#image_style_11_1590480133634"); let picitems = obj.find("li.imgitems"); let num = 0; let picbox; picitems.click(function(){ let toph = $(window).scrolltop(); let index = $(this).index(); let curpic = $(this).find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); curpicstyle = ''; curicon = ''; curiconstyle = 'display:none;'; }else{ curpic = ''; curpicstyle = 'display:none;'; curicon = $(this).find(".bbx-new-font").text(); curiconstyle = $(this).find(".bbx-new-font").attr('style'); } num = index; let html = "
"+curicon+"
×
"; let picboxhtml = $(html); //"+""+"为了躲开图片延时加载的代码替换 $("body").append(picboxhtml); picbox = $(".imgshowbox"); pdsize(); //判断下一张和上一张按钮的显示 if(picitems.length == 1){ $("body").find(".imgbutton>.nextimg,.imgbutton>.previmg").css("visibility","hidden") } if(picitems.length-1 == $(this).index()){ $("body").find(".imgbutton>.nextimg").css("visibility","hidden") } if($(this).index() == 0){ $("body").find(".imgbutton>.previmg").css("visibility","hidden") } //关闭 $("body").find(".imgbutton>.closeshowpic").click(function(){ $(".imgshowbox").remove(); $("body").removeclass("pos_fixed"); $(window).scrolltop(toph); }); //下一张 $("body").find(".imgbutton>.nextimg").click(function(){ $(".imgshowbox img").css("max-height","none"); let len = obj.find("li:has('.imgcont')").length; $(this).siblings().css("visibility","visible"); num++; if(num >= len){ num = len-1; } if(num == len-1){ $(this).css("visibility","hidden"); } curpics(); pdsize(); }); //上一张 $("body").find(".imgbutton>.previmg").click(function(){ $(".imgshowbox img").css("max-height","none"); $(this).siblings().css("visibility","visible"); num--; if(num <= 0){ num = 0; $(this).css("visibility","hidden"); } curpics(); pdsize(); }); }); //切换大图 function curpics(){ let that = obj.find("li").eq(num); let curpic = that.find(".theimgdiv").css("backgroundimage"); let curicon,curiconstyle,curpicstyle; let boximg = picbox.find("img"); let boxicon = picbox.find(".bbx-new-font"); if(curpic){ curpic = curpic.replace('url(','').replace(')','').replaceall('"','').replaceall("'",''); boximg.attr("src",curpic); boximg.show(0); boxicon.hide(0); }else{ curicon = that.find(".bbx-new-font").text(); curiconstyle = that.find(".bbx-new-font").attr('style'); boxicon.text(curicon); boxicon.attr('style',curiconstyle); boximg.hide(0); } } //判断展开显示效果 function pdsize(){ let imgh = picbox.find("img").height(); let winh = $(window).height(); if(imgh>winh){ $("body").addclass("pos_fixed"); picbox.addclass("scroll"); picbox.animate({"scrolltop":"0px"},200); }else{ $("body").removeclass("pos_fixed"); picbox.removeclass("scroll"); $(".imgshowbox img").css("max-height","80%"); } } })