锘?/鏃犲浘鍥惧儚
var nullimg = '/images/error.jpg';
function lod(t) {
t.onerror = null;
t.src = nullimg
}
$(function(){
try{
$(".world_main .world_main_part").eq(0).addClass('first_sty');
$(".world_main .world_main_part").eq(0).find("li:last-child").addClass('last_sty');
}catch(e){}
if(/AppleWebKit.*Mobile/i.test(navigator.userAgent) || (/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/.test(navigator.userAgent))){
if(window.location.href.indexOf("?mobile")<0){
try{
if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){
//window.location.href="http://shipei.qq.com/index.htm";
$('.in_banner').remove();
}else if(/iPad/i.test(navigator.userAgent)){
}else{
//window.location.href="http://shipei.qq.com/simple/s/index/"
$('.in_banner_phone').remove();
}
}catch(e){}
}
}
if($(".select_0")){
$(".select_0").each(function (i) {
$(this).find("dt").click(function (e) {
e.preventDefault();
e.stopPropagation();
$(".select_0").eq(i).find("dd").show().parents('li').siblings('li').find('dd').hide();
$(".select_0").eq(i).find("dd").show().parents('li').css({"zIndex":2});
$(".select_0").eq(i).find("dd").show().parents('li').siblings("li").css({"zIndex":1});
$(".select_0").eq(i).find("dd a").each(function (x) {
$(this).click(function () {
$(".select_0").eq(i).find("dd a").removeClass("on");
$(this).addClass("on");
$(".select_0").eq(i).find("dt").text($(this).text());
$(".select_0").eq(i).next(".select_hidden").val($(this).attr("data-val"));
});
});
});
});
$(document).click(function () {
$(".select_0 dd").hide();
});
}
});
var isSupportTouch = (!!('ontouchend' in document) || navigator.userAgent.indexOf('Windows Phone') > 0) && $(window).width() <= 1024;
var isSupportTouch2 = (!!('ontouchend' in document) || navigator.userAgent.indexOf('Windows Phone') > 0) && $(window).width() <= 980;
(function ($) {
$(window).scroll(function () {
if($(window).scrollTop()>=152){
$(".navMove").fadeIn();
}else{
$(".navMove").fadeOut();
}
})
$(function(){
if(isSupportTouch){
//$(".investor_column ul li:eq(2)").hide();
$(".footer .fr li:eq(1)").click(function(){
window.location.href="http://weibo.com/zoomlioncorporation";
})
}
})
$(window).resize(function(){
isSupportTouch = (!!('ontouchend' in document) || navigator.userAgent.indexOf('Windows Phone') > 0) && $(window).width() <= 1024;
$(".world_main_part ul li").each(function(){
$(this).find("img").width($(this).width());
$(this).find("img").height($(this).width()*0.75);
})
if($(window).width()<=1660){
$(".navMove").css({"width":$(window).width(),"marginLeft":$(window).width()/2*-1})
/*$(".in_banner").css({"width":$(window).width(),"marginLeft":$(window).width()/2*-1})*/
$(".header_top").css({"width":$(window).width(),"marginLeft":$(window).width()/2*-1})
$(".header_main_wrap").css({"width":$(window).width(),"marginLeft":$(window).width()/2*-1,"left":"50%"})
$(".footer").css({"width":$(window).width(),"marginLeft":$(window).width()/2*-1})
}else{
$(".navMove").css({"width":1660,"marginLeft":-830})
/*$(".in_banner").css({"width":1660,"marginLeft":-830})*/
$(".header_top").css({"width":1660,"marginLeft":-830})
$(".header_main_wrap").css({"width":1660,"marginLeft":-830,"left":"50%"});
$(".footer").css({"width":1660,"marginLeft":-830})
}
$("#gxgs .list1 li").each(function(){
$(this).find("img").width($(".coop_mn .list1 li").eq(0).width());
$(this).find("img").height($(".coop_mn .list1 li").eq(0).width()*0.75);
})
if($(window).width()<=767){
$(".coop_mn .list1 li").each(function(){
$(this).find("img").width($(".coop_mn .list1 li").eq(0).width());
$(this).find("img").height($(".coop_mn .list1 li").eq(0).width()*0.75);
})
}else{
$(".coop_mn .list1 li").each(function(){
})
}
$(".special_index_detail1_part7 ul li").each(function(){
$(this).find("a > img").width($(".special_index_detail1_part7 ul li").eq(0).width());
$(this).find("a > img").height($(".special_index_detail1_part7 ul li").eq(0).width()*0.56);
})
$(".social_list ul li").each(function(){
$(this).height($(".social_list ul li").eq(0).width()*0.56);
})
$(".technology_mn ul li").each(function(){
$(this).find("img").width($(".technology_mn ul li").eq(0).width());
$(this).find("img").height($(".technology_mn ul li").eq(0).width()*0.56);
})
$(".honor_part1_main ul li").each(function(){
$(this).height($(".honor_part1_main ul li").eq(0).width()*0.66);
})
$(".special_index_detail1_part8 ul li").each(function(){
$(this).height($(".special_index_detail1_part8 ul li").eq(0).width()*0.56);
})
$(".special_index_detail1_part2_l").height($(".special_index_detail1_part2_l").width()*0.75);
$(".star_box ul li").each(function(){
$(this).height($(".star_box ul li").eq(0).width()*0.69);
$(this).find("img").width($(".star_box ul li").eq(0).width());
$(this).find("img").height($(".star_box ul li").eq(0).width()*0.69);
$(".star_box ul li .inner .cont").height("100%");
})
$(".intro_part2 .resource-type-wrap .panel").each(function(){
$(this).height(Math.floor($(".intro_part2 .resource-type-wrap .panel").eq(0).width()*0.74));
})
if(isSupportTouch){
$(".news_index_part3_box_main_l").width($(".column_box").width());
$(".news_index_part3_box_main_l").height($(".column_box").width()*0.58);
$(".insight_hd .picture_wrap").width($(".column_box").width());
$(".insight_hd .picture_wrap").height($(".column_box").width()*0.62);
$(".info_top .info_image").width($(".column_box").width()*0.96);
$(".info_top .info_image").height($(".column_box").width()*0.96*0.6);
$(".intro_index_detail1_part2_l").width($(".column_box").width()*0.96);
$(".intro_index_detail1_part2_l").height($(".column_box").width()*0.96*0.56);
$(".technology_hd .fr").width($(".technology_hd .inner").width()*0.96);
$(".technology_hd .fr").height($(".technology_hd .inner").width()*0.96*0.59);
$(".home-industry .box").height($(".home-industry .box").eq(0).width())
//$(".star_hd .fl").width($(".main").width()*0.96);
//$(".star_hd .fl li").width($(".main").width()*0.96);
//$(".star_hd .fl").height($(".main").width()*0.96*0.85);
$(".his_box_header_main").width($(".column_box").width());
$(".his_box_header_main").height($(".column_box").width()*0.55);
$(".intro_part1 li").each(function(){
$(this).width($(".column_box").width()*0.96);
$(this).height($(".column_box").width()*0.96*0.56);
})
}else{
$(".technology_hd .fr").removeAttr("style");
$(".news_index_part3_box_main_l").removeAttr("style");
$(".insight_hd .picture_wrap").removeAttr("style");
$(".info_top .info_image").removeAttr("style");
$(".intro_index_detail1_part2_l").removeAttr("style");
$(".star_hd .fl").removeAttr("style");
$(".his_box_header_main").removeAttr("style");
}
if(isSupportTouch2){
$(".star_hd .fl").width($(window).width()*0.96);
$(".star_hd .fl li").width($(window).width()*0.96);
$(".star_hd .fl").height($(window).width()*0.96*0.85);
}
$('.part7_part1 > img').width('100%');
$('.part7_part1 > img').height('100%');
})
$(document).ready(function () {
/*$(".header_main nav > ul > li").click(function(){
if($(this).hasClass("show")){
$(this).removeClass("show");
}else{
$(this).addClass("show");
$(this).siblings().removeClass("show");
}
})*/
/* var headerTimer=null;
$(".header_main nav li").hover(function(){
var headerThis=$(this);
headerTimer=setTimeout(function(){headerThis.find(".nav_menu").show();},500)
},function(){
var headerThis=$(this);
clearTimeout(headerTimer);
headerThis.find(".nav_menu").hide();
})*/
var timer = null;
var timer2 = null;
var timer3 = null,
pln=true;
$(document).on('mouseenter','.header_main_r > nav > ul > li',function(){
var _this = $(this);
pln=false;
clearTimeout(timer);
timer2=setTimeout(function(){
$('.nav_menu').hide();
_this.find('.nav_menu').show();
},200);
});
$(document).on('mouseleave','.header_main_r > nav > ul > li',function(){
var _this=$(this);
timer = setTimeout(function(){_this.find('.nav_menu').hide()},200);
clearTimeout(timer2);
});
$(document).on('mouseenter','.nav_menu',function(){
clearTimeout(timer);
pln=true;
});
$(document).on('mouseleave','.nav_menu',function(){
var _this=$(this);
timer3 = setTimeout(function(){
if(pln)_this.hide()
},200);
});
if($(window).width()<=1660){
$(".navMove").css({"width":$(window).width(),"marginLeft":$(window).width()/2*-1})
/*$(".in_banner").css({"width":$(window).width(),"marginLeft":$(window).width()/2*-1})*/
$(".header_top").css({"width":$(window).width(),"marginLeft":$(window).width()/2*-1})
$(".header_main_wrap").css({"width":$(window).width(),"marginLeft":$(window).width()/2*-1,"left":"50%"})
$(".footer").css({"width":$(window).width(),"marginLeft":$(window).width()/2*-1})
}else{
$(".navMove").css({"width":1660,"marginLeft":-830})
/*$(".in_banner").css({"width":1660,"marginLeft":-830})*/
$(".header_top").css({"width":1660,"marginLeft":-830})
$(".header_main_wrap").css({"width":1660,"marginLeft":-830,"left":"50%"})
$(".footer").css({"width":1660,"marginLeft":-830})
}
})
$(document).ready(function () {
$(".team_box_header").on("click", "span", function () {
var nIndex = $(".team_box_header span").index(this)+1;
$('body,html').animate({ scrollTop: $(".team_box_part"+nIndex).offset().top }, 1000);
})
//$("img").each(function () {
// if ($(this).attr("src") == "") {
// $(this).attr({ "src": nullimg })
// }
// })
var pageMove=$(".special_index_detail2_part5_main > ul").size();
var setPageNumber=0;
var ShowNumer='';
for(var i=0; i<=pageMove-1; i++){
var inIndex=i+1;
ShowNumer+=''+inIndex+'';
}
$(".special_index_detail2_part5_main .page3").append('< '+ShowNumer+' >');
$(".pageMoveNum").eq(0).addClass("on");
$(document).on("click",".pageMoveNum",function(){
var nIndex=$(".pageMoveNum").index(this);
$(this).removeClass("on").addClass("on").siblings(".pageMoveNum").removeClass("on");
$(".special_index_detail2_part5_main > ul:eq("+nIndex+")").show().siblings("ul").hide();
})
$(".special_index_detail2_part5_main").on("click",".page3 a:first",function(){
if(setPageNumber<=0){
}else{
setPageNumber--;
$(".pageMoveNum").eq(setPageNumber).click();
}
})
$(".special_index_detail2_part5_main").on("click",".page3 a:last",function(){
if(setPageNumber>=pageMove-1){
}else{
setPageNumber++;
$(".pageMoveNum").eq(setPageNumber).click();
}
})
$(".world_header dd").hover(function () {
var nIndex = $(".world_header dd").index(this);
$(this).removeClass().addClass("active").siblings().removeClass();
$(".world_main_part").eq(nIndex).show().siblings(".world_main_part").hide();
$(".world_main_part ul li").each(function(){
$(this).find("img").width($(this).width());
$(this).find("img").height($(this).width()*0.75);
})
})
$(".year_main dd").hover(function () {
$(".year_main dd p").hide();
$(this).find("p").show();
})
$(".year_main_l").click(function () {
$(this).parents("li").removeClass("active").addClass("active");
$(this).parents("li").siblings().removeClass("active");
$(".year_main dd").find("p").hide();
$(this).parents("li").find("dd").eq(0).find("p").show();
$(window).scrollTop($(this).offset().top);
})
$(function () {
$(".containers .search_list li:odd").addClass("odd")
})
$(".news_roll .dlWrap span").click(function () {
var nIndex = $(".news_roll .dlWrap span").index(this);
$(this).removeClass().addClass("active").siblings().removeClass();
$(".news_roll li:eq(" + nIndex + ")").fadeIn();
$(".news_roll li:eq(" + nIndex + ")").siblings().fadeOut();
$(".news_index_part3_box_main_r li:eq(" + nIndex + ")").removeClass().addClass("active");
$(".news_index_part3_box_main_r li:eq(" + nIndex + ")").siblings().removeClass();
//alert(nIndex);
})
$(".news_index_part3_box_main_r li").hover(function () {
var nIndex = $(".news_index_part3_box_main_r li").index(this);
$(".news_roll .dlWrap span:eq(" + nIndex + ")").removeClass().addClass("active");
$(".news_roll .dlWrap span:eq(" + nIndex + ")").siblings("span").removeClass();
$(".news_roll li:eq(" + nIndex + ")").fadeIn();
$(".news_roll li:eq(" + nIndex + ")").siblings().fadeOut();
$(".news_index_part3_box_main_r li:eq(" + nIndex + ")").removeClass().addClass("active");
$(".news_index_part3_box_main_r li:eq(" + nIndex + ")").siblings().removeClass();
})
/* by haozy 2015_09_12
$(".gn_tit a").click(function () {
var nIndex = $(".gn_tit a").index(this);
$(this).removeClass().addClass("on").siblings().removeClass();
$(".gn_wrap ul:eq(" + nIndex + ")").show().siblings("ul").hide();
})
*/
$(document).ready(function () {
try{
var showpicture3 = new pictureShows(
'picture_box2', //澶栧眰鏍峰紡鍚嶇О
'slide', //杩愬姩妯″紡 slide,opacity,stack(闇€鍔犲弬鏁帮紝鏂规硶涓猴細stack_涓暟_闂磋窛) stack_5_2,side
false, //鏄惁鏈夌澶
false, //鏄惁鑷姩
'3000', //鑷姩鎾斁闂撮殧鏃堕棿
true, //鏄惁鏈塨anner涓婄殑鎸夐挳
false, //鏄惁鏈夌缉鐣ュ浘
"cancel", //婊氬姩鏉 婊氬姩锛歴croll,绠ご鍒囨崲锛歴croll_arrow,鍒囨崲鍜岀澶达細scroll_and_sj,鍙栨秷锛歝ancel
5, //缂╃暐鍥炬樉绀烘暟閲
500, //杩愬姩閫熷害
0
);
}catch(e){}
})
var header = ".header",
header_h = $(header).outerHeight(),
home_banner = ".home-banner",
home_banner_h = $(home_banner).height(),
video_cap = header_h + home_banner_h + 6,
home_video = ".home-video",
window_w = $(window).width();
$(window).resize(function () {
//window_w = $(window).width();
/*if($(window).width()<1024){
$(".home-industry .box").removeAttr("style").css("opacity",1);
}*/
/*if($(window).width() > 1279) {
new_w = 670;
new_h = 440;
} else if($(window).width() < 1279 && $(window).width() > 1023) {
new_w = 470;
new_h = 310;
} else if($(window).width() < 1023 && $(window).width() > 750) {
new_w = 370;
new_h = 240;
} else if($(window).width() < 750) {
new_w = $(window).width() - 20;
new_h = new_w * 0.65671;
}*/
//$video.attr({width: new_w, height: new_h});
if ($(window).width() > 767) {
$(".navigation").removeAttr('style');
}
});
if (isSupportTouch) {
$(".home-banner").addClass("not-control");
}
$(".home-industry .box").hover(function () {
//$(this).find(".overlay").stop().animate({opacity: 1});
}, function () {
//$(this).find(".overlay").stop().animate({opacity: 0});
});
var isAnimated = false;
$(".home-industry .box").hover(function () {
var $this = $(this);
var nIndex = $this.index();
if (nIndex >= 0 && nIndex <= 5) {
$(this).find(".overlay").css({ "opacity": 1 });
$(this).siblings().find(".overlay").css({ "opacity": 0 });
$(".box-7").find(".select_inner_box").eq(nIndex).show();
$(".box-7").find(".select_inner_box").eq(nIndex).siblings().hide();
}
});
$(".nav_btn").click(function () {
if($(".header_main nav").hasClass("show")){
$(".header_main nav").removeClass("show");
}else{
$(".header_main nav").addClass("show");
}
});
});
$('.base_box ul li:odd').addClass('odd');
$('.zoomlion_box ul li:even').addClass('even');
})(jQuery);
window.onload=function(){
(function ($) {
/*$(".coop_scroll .list1 li").each(function(){
$(this).find("img").width($(this).width());
$(this).find("img").height($(this).width()*0.75);
})*/
$("#gxgs .list1 li").each(function(){
$(this).find("img").width($(".coop_mn .list1 li").eq(0).width());
$(this).find("img").height($(".coop_mn .list1 li").eq(0).width()*0.75);
})
/*$('.nav_menu .fr ul li').each(function(){
$(this).height($(this).width()*0.5616);
})*/
$(".special_index_detail1_part2_l").height($(".special_index_detail1_part2_l").width()*0.75);
$(".special_index_detail1_part7 ul li").each(function(){
$(this).find("a > img").width($(this).width());
$(this).find("a > img").height($(this).width()*0.56);
})
$(".technology_mn ul li").each(function(){
$(this).find("img").width($(this).width());
$(this).find("img").height($(this).width()*0.56);
})
$(".star_box ul li").each(function(){
$(this).find("img").width($(this).width());
$(this).find("img").height($(this).width()*0.69);
$(".star_box ul li .inner .cont").height("100%");
})
$(".intro_part2 .resource-type-wrap .panel").each(function(){
$(this).height($(this).width()*0.74);
})
$(".special_index_detail1_part8 ul li").each(function(){
$(this).height($(".special_index_detail1_part8 ul li").eq(0).width()*0.56);
})
$(".honor_part1_main ul li").each(function(){
$(this).height($(".honor_part1_main ul li").eq(0).width()*0.66);
})
if(isSupportTouch){
$(".news_index_part3_box_main_l").width($(".column_box").width());
$(".news_index_part3_box_main_l").height($(".column_box").width()*0.58);
$(".insight_hd .picture_wrap").width($(".column_box").width());
$(".insight_hd .picture_wrap").height($(".column_box").width()*0.62);
$(".info_top .info_image").width($(".column_box").width()*0.96);
$(".info_top .info_image").height($(".column_box").width()*0.96*0.6);
$(".intro_index_detail1_part2_l").width($(".column_box").width()*0.96);
$(".intro_index_detail1_part2_l").height($(".column_box").width()*0.96*0.56);
$(".technology_hd .fr").width($(".technology_hd .inner").width()*0.96);
$(".technology_hd .fr").height($(".technology_hd .inner").width()*0.96*0.59);
//$(".star_hd .fl").width($(".main").width()*0.96);
//$(".star_hd .fl li").width($(".main").width()*0.96);
//$(".star_hd .fl").height($(".main").width()*0.96*0.85);
$(".his_box_header_main").width($(".column_box").width());
$(".his_box_header_main").height($(".column_box").width()*0.55);
$(".intro_part1 li").each(function(){
$(this).width($(".column_box").width()*0.96);
$(this).height($(".column_box").width()*0.96*0.56);
})
$(".home-industry .box").height($(".home-industry .box").eq(0).width())
}else{
$(".technology_hd .fr").removeAttr("style");
$(".news_index_part3_box_main_l").removeAttr("style");
$(".insight_hd .picture_wrap").removeAttr("style");
$(".info_top .info_image").removeAttr("style");
$(".intro_index_detail1_part2_l").removeAttr("style");
$(".star_hd .fl").removeAttr("style");
$(".his_box_header_main").removeAttr("style");
}
if(isSupportTouch2){
$(".star_hd .fl").width($(window).width()*0.96);
$(".star_hd .fl li").width($(window).width()*0.96);
$(".star_hd .fl").height($(window).width()*0.96*0.85);
}
})(jQuery);
}
function pageMove() {
$("body,html").stop().animate({ scrollTop: $(".page").prev().offset().top - $(".navMove").height() })
}
$(function () {
var reg = /\/trends_(\d+)\.html/;
var thisUrl = window.location;
if (reg.test(thisUrl)) {
pageMove();
}
})
$(function () {
if(navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion .split(";")[1].replace(/[ ]/g,"")=="MSIE6.0")
{
}
else if(navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion .split(";")[1].replace(/[ ]/g,"")=="MSIE7.0")
{
$("body, input, select, button, textarea").css("font-family","瀹嬩綋");
}
else if(navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion .split(";")[1].replace(/[ ]/g,"")=="MSIE8.0")
{
$("body, input, select, button, textarea").css("font-family","瀹嬩綋");
}
else if(navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion .split(";")[1].replace(/[ ]/g,"")=="MSIE9.0")
{
}
})
//$(function(){
// try{
// $('a').map(function(){
// if($(this).attr('href').indexOf('http://124.232.143.171')!=-1){
// $(this).attr('href',$(this).attr('href').replace('http://124.232.143.171',''));
// }
// if($(this).attr('href').indexOf('upload/contents')!=-1){
// $(this).attr('href',$(this).attr('href').replace('upload/contents','/upload/contents'));
// }
// });
// $('img').map(function(){
// if($(this).attr('src').indexOf('http://124.232.143.171')!=-1){
// $(this).attr('src',$(this).attr('src').replace('http://124.232.143.171',''));
// }
// });
// if($(this).attr('src').indexOf('http://')!=-1&&$(this).attr('src').indexOf('/upload/contents')==-1){
// $(this).attr('src',$(this).attr('src').replace('upload/contents','/upload/contents'));
// }
// }catch(e){
// }
// })