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' //content: '' }); } function swf(name,width,height,transparent){ document.write(""); 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 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() { var timer = true; /** 杩斿洖椤堕儴 **/ $(window).scroll(function() { var t = $(document).scrollTop(); /* if (t > 100) { $(".header").addClass("header_white"); $(".logo_img").attr("src","/index/logo.png"); } else { $(".header").removeClass("header_white"); $(".logo_img").attr("src","/index/logo_w.png"); } */ }); $(".top_find_bt").click(function(){ if($(".top_find_content").hasClass("show")){ $(".top_find_content").transition({scale:0}); $(".top_find_content").removeClass("show"); }else{ $(".top_find_content").transition({scale:1}); $(".top_find_content").addClass("show"); } }); $('#totop').click(function() { $("html,body").animate({scrollTop:0}, 200); }); $('#mobile-totop').click(function() { $("html,body").animate({scrollTop:0}, 200); }); $(".mainmenu_prod").on("click",function(){ $(".mainmenu_prod_sub").fadeToggle(200); $(this).toggleClass("active"); }); $('.index1 ul li').mouseover(function(){ $(this).addClass("on").siblings().removeClass("on"); }); //闅愯棌璐墿绡 $(".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 }); */ }); //璐墿绡鍔 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){ } }); } $(document).ready(function(){ //$(".foot1_2_1").html($(".header2_1_3").html()); //澶嶅埗骞冲彴淇℃伅 $(".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*/ };