您好,欢迎进入云顶3118网站沙盘有限公司官网!

咨询热线:

020-88888888

产品中心标题九

发布时间:2019-05-14 09:08人气: function tag_arcclick(aid) { var ajax = new XMLHttpRequest(); ajax.open("get", "/index.php?m=api&c=Ajax&a=arcclick&aid="+aid+"&type=view", true); ajax.setRequestHeader("X-Requested-With","XMLHttpRequest"); ajax.setRequestHeader("Content-type","application/x-www-form-urlencoded"); ajax.send(); ajax.onreadystatechange = function () { if (ajax.readyState==4 && ajax.status==200) {     document.getElementById("eyou_arcclick_1712830307_"+aid).innerHTML = ajax.responseText;  } } }
//缩略图滚动事件 $(".jCarouselLite").jCarouselLite({ btnNext: "#btnNext", btnPrev: "#btnPrev", scroll: 1, speed: 240, circular: false, visible: 6 }); var currentImage; var currentIndex = -1; //显示大图(参数index从0开始计数) function showImage(index){ //更新当前图片页码 $(".CounterCurrent").html(index + 1); //隐藏或显示向左向右鼠标手势 var len = $('#OriginalPic img').length; if(index == len - 1){ $("#aNext").hide(); }else{ $("#aNext").show(); } if(index == 0){ $("#aPrev").hide(); }else{ $("#aPrev").show(); } //显示大图 if(index < $('#OriginalPic img').length){ var indexImage = $('#OriginalPic p')[index]; //隐藏当前的图 if(currentImage){ if(currentImage != indexImage){ $(currentImage).css('z-index', 2); $(currentImage).fadeOut(0,function(){ $(this).css({'display':'none','z-index':1}) }); } } //显示用户选择的图 $(indexImage).show().css({'opacity': 0.4}); $(indexImage).animate({opacity:1},{duration:200}); //更新变量 currentImage = indexImage; currentIndex = index; //移除并添加高亮 $('#ThumbPic img').removeClass('active'); $($('#ThumbPic img')[index]).addClass('active'); //设置向左向右鼠标手势区域的高度 //var tempHeight = $($('#OriginalPic img')[index]).height(); //$('#aPrev').height(tempHeight); //$('#aNext').height(tempHeight); } } //下一张 function ShowNext(){ var len = $('#OriginalPic img').length; var next = currentIndex < (len - 1) ? currentIndex + 1 : 0; showImage(next); } //上一张 function ShowPrep(){ var len = $('#OriginalPic img').length; var next = currentIndex == 0 ? (len - 1) : currentIndex - 1; showImage(next); } //下一张事件 $("#aNext").click(function(){ ShowNext(); if($(".active").position().left >= 144 * 5){ $("#btnNext").click(); } }); //上一张事件 $("#aPrev").click(function(){ ShowPrep(); if($(".active").position().left <= 144 * 5){ $("#btnPrev").click(); } }); //初始化事件 $(".OriginalPicBorder").ready(function(){ ShowNext(); //绑定缩略图点击事件 $('#ThumbPic li').bind('click',function(e){ var count = $(this).attr('rel'); showImage(parseInt(count) - 0); }); });

020-88888888
AOS.init({ easing: 'ease-out-back', duration: 1000 }); if (!window.jQuery) { document.write(unescape("%3Cscript src='/public/static/common/js/jquery.min.js' type='text/javascript'%3E%3C/script%3E")); document.write(unescape("%3Cscript type='text/javascript'%3E try{jQuery.noConflict();}catch(e){} %3C/script%3E")); } if (window.jQuery) { (function($){ default_switch(); //简体繁体互换 function default_switch() { var home_lang = getCookie('home_lang'); if (home_lang == '') { home_lang = 'cn'; } if ($.inArray(home_lang, ['zh','cn'])) { var obj = $('#jquerys2t_1573822909'); var isSimplified = getCookie('jquerys2t_1573822909'); if ('cn' == isSimplified) { $('body').t2s(); $(obj).text('繁體'); } else if ('zh' == isSimplified) { $('body').s2t(); $(obj).text('简体'); } } } //简体繁体互换 $('#jquerys2t_1573822909').click(function(){ var obj = this; var isSimplified = getCookie('jquerys2t_1573822909'); if ('' == isSimplified || 'cn' == isSimplified) { $('body').s2t(); // 简体转繁体 setCookie('jquerys2t_1573822909', 'zh'); $(obj).text('简体'); } else { $('body').t2s(); // 繁体转简体 setCookie('jquerys2t_1573822909', 'cn'); $(obj).text('繁體'); } }); })(jQuery); }