var website_url="https://video6.3388903.com/"; function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i"); document.write(""); document.write(""); document.write(""); document.write(""); if(transparent==1) document.write(""); document.write(""); document.write(""); } function DrawImage(ImgD,w,h){ xwidth=w; xheight=h; var image=new Image(); image.src=ImgD.src; if(image.width>0 && image.height>0){ flag=true; if(image.width/image.height>= xwidth/xheight){ if(image.width>xwidth){ ImgD.width=xwidth; ImgD.height=(image.height*xwidth)/image.width; }else{ ImgD.width=image.width; ImgD.height=image.height; } } else{ if(image.height>xheight){ ImgD.height=xheight; ImgD.width=(image.width*xheight)/image.height; }else{ ImgD.width=image.width; ImgD.height=image.height; } } } } function guanggao(width,height,name,pic,links){ var textheight=0 var focus_width=width var focus_height=height var swf_height = focus_height var names=name var pics=pic document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); } function findisok(obj){ if(trim(obj.keyword.value)==""){ alert("璇疯緭鍏ヨ鎼滅储鐨勫叧閿瓧"); obj.keyword.focus(); return false; } return true; } function findisok_en(obj){ if(trim(obj.keyword.value)==""){ alert("Please enter search keyword"); obj.keyword.focus(); return false; } return true; } function findisok_es(obj){ if(trim(obj.keyword.value)==""){ alert("Ingrese la palabra clave de b煤squeda"); obj.keyword.focus(); return false; } return true; } function tick() { var hours, minutes, seconds, xfile; var intHours, intMinutes, intSeconds; var today, theday; today = new Date(); function initArray(){ this.length=initArray.arguments.length for(var i=0;i+Down Load Catalog"; } function stopBubble(e) { //濡傛灉鎻愪緵浜嗕簨浠跺璞★紝鍒欒繖鏄竴涓潪IE娴忚鍣 if ( e && e.stopPropagation ) //鍥犳瀹冩敮鎸乄3C鐨剆topPropagation()鏂规硶 e.stopPropagation(); else //鍚﹀垯锛屾垜浠渶瑕佷娇鐢↖E鐨勬柟寮忔潵鍙栨秷浜嬩欢鍐掓场 window.event.cancelBubble = true; } $(function() { var timer = true; /** 杩斿洖椤堕儴 **/ $(window).scroll(function() { var t = $(document).scrollTop(); }); $(document).click(function(){ $(".top_find_content").fadeOut(); }); $(".top_find_bt").click(function(e){ stopBubble(e); $(".top_find_content").fadeToggle(); }); $(".top_find_content").click(function(e){ stopBubble(e); }); //鍒锋柊楠岃瘉鐮 $('.icon_yzm').on('click',function(){ $(this).attr('src','/code.html?v='+Math.random()); }); $('.span_top').on('click',function () { $("html,body").animate({scrollTop:0}, 200); }); $('.index_btn').on('click',function () { var width=$(window).width(); if(width>=1200){ w=120; }else if(width>=768){ w=100; } else{ w=60; } var obj=$(this).data('id'); var top=$('.'+obj).offset().top-w; $("html,body").animate({scrollTop:top}, 200); }); /* $('.video-img').click(function() { //event.stopPropagation(); var obj=$(this).data('id'); var video=$('#video-'+obj); var video_url=full_video_url(video.data('url')); var video_html=''; video.html(video_html); $('#media-video').addEventListener("touchstart", handleTouchEvent, false); }); $(document).on('click','#current-video',function(e){ event.stopPropagation(); $(this).parent().html(''); }); */ //闅愯棌璐墿绡 $(".BasketHide").click(function() { $(".InquireBasket").animate({height:'38px'}, 300); $(".BasketHide").addClass("csshide"); $(".BasketShow").removeClass("csshide"); }); //鏄剧ず璐墿绡 $(".BasketShow").click(function() { $(".InquireBasket").animate({height:'270px'}, 300); $(".BasketHide").removeClass("csshide"); $(".BasketShow").addClass("csshide"); }); //娓呯┖璐墿绡 $(".BasketClearAll").click(function() { $.ajax({ url:"/ajaxreturn.asp", type:"post", data:{"control":"delallcart"}, success:function(data){ $(".InquireBasket_Content").html(""); $("#span_cartcount").html(0); $(".InquireBasket").addClass("csshide"); }, error:function(e){ } }); }); /* $(".photo_album").owlCarousel({ items: 1, itemsDesktop: [1199,1], itemsDesktopSmall: [991,1], itemsTablet: [768,1], itemsMobile : [479,1], autoPlay: true, lazyLoad: true }); */ $('.video-container>img').on('click',function(){ remove_video(); var pic=$(this)[0].src; var video=$(this).data('video'); var obj=$(this).parent(); obj.append('
'); console.log(video); createAliPlayer(pic,video); }); }); //绉婚櫎褰撳墠浣嶇疆瑙嗛 function remove_video(){ $("#video-player").remove(); } //鍒涘缓褰撳墠浣嶇疆瑙嗛 function createAliPlayer(pic,video) { var player = new Aliplayer({ "id": 'video-player', "source": video, "width": "100%", "height": "100%", "autoplay": false, "isLive": false, "cover": pic, "rePlay": false, "playsinline": true, "preload": true, "language": "en-us", "controlBarVisibility": "hover", "videoWidth": "100%", "useH5Prism": true, "skinLayout": [ { "name": "bigPlayButton", "align": "blabs", "x": 30, "y": 80 }, { "name": "H5Loading", "align": "cc" }, { "name": "infoDisplay" }, { "name": "tooltip", "align": "blabs", "x": 0, "y": 56 }, { "name": "thumbnail" }, { "name": "controlBar", "align": "blabs", "x": 0, "y": 0, "children": [ { "name": "progress", "align": "blabs", "x": 0, "y": 44 }, { "name": "playButton", "align": "tl", "x": 15, "y": 12 }, { "name": "timeDisplay", "align": "tl", "x": 10, "y": 7 }, { "name": "fullScreenButton", "align": "tr", "x": 10, "y": 12 }, { "name": "volume", "align": "tr", "x": 5, "y": 10 } ] } ] }, function (player) { console.log("The player is created"); } ); player.play(); player.on("click", function(e) { remove_video(); }); } //鑾峰彇瑙嗛鐨勫畬鏁磋矾寰 function full_video_url(url){ return website_url+url; } //璐墿绡鍔 function addcart(pid,lang){ $.ajax({ url:"/ajaxreturn.asp", type:"post", data:{"control":"addcart","lang":lang,"productid":pid}, success:function(data){ $(".InquireBasket_Content").html(data); getcartcount(); $(".InquireBasket").removeClass("csshide"); }, error:function(e){ } }); } //璐墿绡垹闄 function delcart(pid,lang){ $.ajax({ url:"/ajaxreturn.asp", type:"post", data:{"control":"delcart","lang":lang,"productid":pid}, success:function(data){ $(".InquireBasket_Content").html(data); getcartcount(); }, error:function(e){ } }); } //鑾峰彇璐墿绡暟閲 function getcartcount(){ $.ajax({ url:"/ajaxreturn.asp", type:"get", data:{"control":"getcartcount"}, success:function(data){ $("#span_cartcount").html(data); if(data=="0") $(".InquireBasket").addClass("csshide"); }, error:function(e){ } }); } function open_video(url){ if(url!=""){ var body_width=$(window).width(); if(body_width>767){ set_width='800px'; set_height='550px'; }else{ set_width='94%'; set_height='75%'; } layer.open({ type: 1, title: false, shadeClose: true, shade: 0.5, area: [set_width, set_height], content: '' }); } } $(document).ready(function(){ $(".open-search-nav").on("click",function(e){ $(".content-search").slideToggle(); $(".top1_3").toggleClass("csshide"); $(".top1_4").toggleClass("csshide"); }); var scrollTop; $(".open-mobile-nav").on("click",function(e){ //$(".mobile-nav").toggleClass("menu-is-open"); $(".mobile-nav").animate({left:'0'}); $(".mobile-nav-back").toggleClass("menu-is-open"); }); $(".close-mobile-nav,.mobile-nav-back").on("click",function(){ //$(".mobile-nav").toggleClass("menu-is-open"); $(".mobile-nav").animate({left:'-300px'}); $(".mobile-nav-back").toggleClass("menu-is-open"); }); $(".topnav").accordion({ accordion:true, speed: 300, closedSign: '', openedSign: '' }); }); //鏃ユ湡 function write_date(){ var week; if(new Date().getDay()==0) week="鏄熸湡鏃? if(new Date().getDay()==1) week="鏄熸湡涓€" if(new Date().getDay()==2) week="鏄熸湡浜? if(new Date().getDay()==3) week="鏄熸湡涓? if(new Date().getDay()==4) week="鏄熸湡鍥? if(new Date().getDay()==5) week="鏄熸湡浜? if(new Date().getDay()==6) week="鏄熸湡鍏? document.write(new Date().getFullYear()+"骞?+(new Date().getMonth()+1)+"鏈?+new Date().getDate()+"鏃?+" "+week); } //鏀惰棌鏈珯 function AddFavorite(sURL,sTitle){ sURL = encodeURI(sURL); try{ window.external.addFavorite(sURL, sTitle); }catch(e){ try{ window.sidebar.addPanel(sTitle, sURL, ""); }catch(e){ alert("鍔犲叆鏀惰棌澶辫触锛岃浣跨敤Ctrl+D杩涜娣诲姞,鎴栨墜鍔ㄥ湪娴忚鍣ㄩ噷杩涜璁剧疆."); } } } //璁句负棣栭〉 function SetHome(url){ if (document.all) { document.body.style.behavior='url(#default#homepage)'; document.body.setHomePage(url); }else{ alert("鎮ㄥソ,鎮ㄧ殑娴忚鍣ㄤ笉鏀寔鑷姩璁剧疆椤甸潰涓洪椤靛姛鑳?璇锋偍鎵嬪姩鍦ㄦ祻瑙堝櫒閲岃缃椤甸潰涓洪椤?"); } } //鍘绘帀鍓嶅悗绌烘牸 function trim(str){ return str.replace(/(^\s*)|(\s*$)/g,''); } function findisok(obj){ if(trim(obj.keyword.value)==""){ alert("璇疯緭鍏ヨ鎼滅储鐨勫叧閿瓧"); obj.keyword.focus(); return false; } return true; } function advfindisok(obj){ if(trim(obj.keyword.value)=="" && trim(obj.content.value)==""){ alert("鏍囬銆佸唴瀹硅嚦灏戜竴涓笉鑳戒负绌?); obj.keyword.focus(); return false; } return true; } //鍥剧墖鐩稿唽 jssor_1_slider_init = function() { var jssor_1_SlideshowTransitions = [ {$Duration:1200,x:0.3,$During:{$Left:[0.3,0.7]},$Easing:{$Left:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2}, {$Duration:1200,x:-0.3,$SlideOut:true,$Easing:{$Left:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2}, {$Duration:1200,x:-0.3,$During:{$Left:[0.3,0.7]},$Easing:{$Left:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2}, {$Duration:1200,x:0.3,$SlideOut:true,$Easing:{$Left:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2}, {$Duration:1200,y:0.3,$During:{$Top:[0.3,0.7]},$Easing:{$Top:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2}, {$Duration:1200,y:-0.3,$SlideOut:true,$Easing:{$Top:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2}, {$Duration:1200,y:-0.3,$During:{$Top:[0.3,0.7]},$Easing:{$Top:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2}, {$Duration:1200,y:0.3,$SlideOut:true,$Easing:{$Top:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2}, {$Duration:1200,x:0.3,$Cols:2,$During:{$Left:[0.3,0.7]},$ChessMode:{$Column:3},$Easing:{$Left:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2}, {$Duration:1200,x:0.3,$Cols:2,$SlideOut:true,$ChessMode:{$Column:3},$Easing:{$Left:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2}, {$Duration:1200,y:0.3,$Rows:2,$During:{$Top:[0.3,0.7]},$ChessMode:{$Row:12},$Easing:{$Top:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2}, {$Duration:1200,y:0.3,$Rows:2,$SlideOut:true,$ChessMode:{$Row:12},$Easing:{$Top:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2}, {$Duration:1200,y:0.3,$Cols:2,$During:{$Top:[0.3,0.7]},$ChessMode:{$Column:12},$Easing:{$Top:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2}, {$Duration:1200,y:-0.3,$Cols:2,$SlideOut:true,$ChessMode:{$Column:12},$Easing:{$Top:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2}, {$Duration:1200,x:0.3,$Rows:2,$During:{$Left:[0.3,0.7]},$ChessMode:{$Row:3},$Easing:{$Left:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2}, {$Duration:1200,x:-0.3,$Rows:2,$SlideOut:true,$ChessMode:{$Row:3},$Easing:{$Left:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2}, {$Duration:1200,x:0.3,y:0.3,$Cols:2,$Rows:2,$During:{$Left:[0.3,0.7],$Top:[0.3,0.7]},$ChessMode:{$Column:3,$Row:12},$Easing:{$Left:$Jease$.$InCubic,$Top:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2}, {$Duration:1200,x:0.3,y:0.3,$Cols:2,$Rows:2,$During:{$Left:[0.3,0.7],$Top:[0.3,0.7]},$SlideOut:true,$ChessMode:{$Column:3,$Row:12},$Easing:{$Left:$Jease$.$InCubic,$Top:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2}, {$Duration:1200,$Delay:20,$Clip:3,$Assembly:260,$Easing:{$Clip:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2}, {$Duration:1200,$Delay:20,$Clip:3,$SlideOut:true,$Assembly:260,$Easing:{$Clip:$Jease$.$OutCubic,$Opacity:$Jease$.$Linear},$Opacity:2}, {$Duration:1200,$Delay:20,$Clip:12,$Assembly:260,$Easing:{$Clip:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2}, {$Duration:1200,$Delay:20,$Clip:12,$SlideOut:true,$Assembly:260,$Easing:{$Clip:$Jease$.$OutCubic,$Opacity:$Jease$.$Linear},$Opacity:2} ]; var jssor_1_options = { $AutoPlay: 1, $SlideshowOptions: { $Class: $JssorSlideshowRunner$ ,$Transitions: jssor_1_SlideshowTransitions //,$TransitionsOrder: 1 //椤哄簭鎾斁 }, $ArrowNavigatorOptions: { $Class: $JssorArrowNavigator$ }, $ThumbnailNavigatorOptions: { $Class: $JssorThumbnailNavigator$, $SpacingX: 5, $SpacingY: 5 } }; var jssor_1_slider = new $JssorSlider$("jssor_1", jssor_1_options); /*#region responsive code begin*/ var MAX_WIDTH = 1280; function ScaleSlider() { var containerElement = jssor_1_slider.$Elmt.parentNode; var containerWidth = containerElement.clientWidth; if (containerWidth) { var expectedWidth = Math.min(MAX_WIDTH || containerWidth, containerWidth); jssor_1_slider.$ScaleWidth(expectedWidth); } else { window.setTimeout(ScaleSlider, 30); } } ScaleSlider(); $Jssor$.$AddEvent(window, "load", ScaleSlider); $Jssor$.$AddEvent(window, "resize", ScaleSlider); $Jssor$.$AddEvent(window, "orientationchange", ScaleSlider); /*#endregion responsive code end*/ };