// JavaScript Document
$(document).ready(function () {
$('.nav_ul li').last().addClass('lastLi');
$('.defalut_btn').click(function () {
$(this).css("display", "none");
$('.forms').css("display", "block");
$('.txt').animate({ width: 80}, 500);
$('.txt').focus();
});
$('.txt').blur(function () {
$('.txt').animate({ width: 50}, 500, function () {
$('.txt').css("display", "none");
$('.forms').css("display", "none");
$('.defalut_btn').css("display", "block");
});
});
$('.godown').append('');
$('.godown').click(function () {
var HH = $('.banner_index').height();
$(window).scrollTo(HH,500);
});
$('.dlbox').hover(function () {
$(this).find('.sub_ani a').stop().animate({ opacity: "1", width: "60px" }, 300);
$(this).find('dt').addClass('colorFFF');
$(this).find('.sub_txt').addClass('colorFFF');
$(this).find('.comspan').addClass('on');
$(this).find('.sub_ani .a_span').addClass('act');
}, function () {
$(this).find('.sub_ani a').stop().animate({ opacity: "0", width: "0px" }, 100);
$(this).find('dt').removeClass('colorFFF');
$(this).find('.sub_txt').removeClass('colorFFF');
$(this).find('.comspan').removeClass('on');
$(this).find('.sub_ani .a_span').removeClass('act');
});
$('.pro_name_list a').hover(function () {
var nm = $(this).index();
$(this).parents('dd').find('.tabImgs img').hide();
$(this).parents('dd').find('.tabImgs img').eq(nm).show();
$(this).parents('.pro_name_list').find('a').removeClass('on');
$(this).addClass('on');
});
$('.C_cont_left a').click(function (event) {
var nm = $('.C_cont_left a').index(this);
$('.C_cont_left a').removeClass('on');
$(this).addClass('on');
$(this).parents('.C_contentbox').find('.C_cont_R01').hide();
$(this).parents('.C_contentbox').find('.C_cont_R01').eq(nm).show();
});
// 支持服务
$('.Clicked_Ul li').click(function () {
var II = $(this).index();
$('.Clicked_Ul li').removeClass('on');
$(this).addClass('on');
$(this).parents('.C_contentbox').find('.D_tabs_contbox').hide();
$(this).parents('.C_contentbox').find('.D_tabs_contbox').eq(II).show()
});
var zcfw = $(".Clicked_Ul li").index($(".Clicked_Ul li.on"));
$('.C_contentbox').find('.D_tabs_contbox').hide();
$('.C_contentbox').find('.D_tabs_contbox').eq(zcfw).show();
//// 支持服务 服务网络
//$('.D_cont03 a.mapdots').click(function () {
// var a_idx = $('.D_cont03 a.mapdots').index(this);
// $('.D_cont03 a.mapdots').removeClass('act');
// $(this).addClass('act');
// $(this).parents('.D_cont03').find('.map_detail').hide();
// $(this).parents('.D_cont03').find('.map_detail').eq(a_idx).fadeIn(500);
//});
//$('.map_detail').hover(function () {
//}, function () {
// $('.D_cont03 a.mapdots').removeClass('act');
// $('.map_detail').hide();
//});
// 支持服务 常见问题
$('.QA_qabox li a').click(function () {
var i = 0;
if (i == 0) {
if ($(this).parents('li').find('.QA_slide_answers').is(':hidden')) {
$(this).parents('.QA_qabox').find('a').removeClass('act');
$(this).addClass('act');
$(this).parents('.QA_qabox').find('.QA_slide_answers').hide();
$(this).parents('li').find('.QA_slide_answers').slideDown();
} else {
$(this).removeClass('act');
$(this).parents('li').find('.QA_slide_answers').slideUp();
i = 1;
};
} else {
$(this).removeClass('act');
$(this).parents('li').find('.QA_slide_answers').hide();
i = 0;
};
});
$('.showMore').click(function () {
$(this).toggleClass('clk');
var Obj = $(this).parents('.QAboxer').find('li.noshow_li');
if (Obj.hasClass('noshow_li')) {
$(this).parents('.QAboxer').find('.noshow_li').toggle();
$(this).parents('.QAboxer').find('li.noshow_li').find('.QA_slide_answers').hide();
$(this).parents('.QAboxer').find('li.noshow_li').find('a').removeClass('act');
}
});
// 支持服务 资料下载
$('.Dl_tabs a').click(function () {
var I = $(this).index();
$(this).parents('.DownloadBox').find('.Dl_tabs a').removeClass('act_tabs');
$(this).addClass('act_tabs');
$(this).parents('.DownloadBox').find('.Dl_tabContents').hide();
$(this).parents('.DownloadBox').find('.Dl_tabContents').eq(I).show();
});
$('.pro_dateleft dd a').click(function () {
var ida = $('.pro_dateleft dd a').index(this);
// $('.pro_dateleft dd a').parents('dd').removeClass("actives");
$(this).parents('dd').addClass("actives").siblings().removeClass("actives");
$('html,body').animate({ scrollTop: $(".pro_date_subbox").eq(ida).offset().top - 70 }, 500);
});
// 新闻中心
$('.MoreNews_btn').click(function () {
var Val = $(this).attr('tag');
if (Val == "down") {
$(this).attr("tag", "up");
$(this).html('收起');
$(this).addClass('on');
$(this).parents('.news_subbox').find('.MoreNews_Box').slideDown();
} else {
$(this).attr("tag", "down");
$(this).html("");
$(this).removeClass('on');
$(this).parents('.news_subbox').find('.MoreNews_Box').slideUp();
};
});
// 联系我们 百度地图初始化
//$('.Adr_Map').click(function() {
// var map = new BMap.Map('allmap');
// var poi = new BMap.Point(113.960699,22.544891);
// map.centerAndZoom(poi, 16);
// map.enableScrollWheelZoom();
// var content = '
' +
// '
' +
// '地址:深圳市南山区高新区南区高新南一道德赛科技大厦21层
电话:(0755)26919882
简介:rayban雷竞技官网电气举办的系列推荐交流会的主题名,意为“rayban雷竞技官网的时代”。' +
// '
';
// //创建检索信息窗口对象
// var searchInfoWindow = null;
// searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
// title : "深圳市rayban雷竞技官网电气技术有限公司
", //标题
// width : 300, //宽度
// height : 120, //高度
// panel : "panel", //检索结果面板
// enableAutoPan : true, //自动平移
// searchTypes :[
// BMAPLIB_TAB_SEARCH, //周边检索
// BMAPLIB_TAB_TO_HERE, //到这里去
// BMAPLIB_TAB_FROM_HERE //从这里出发
// ]
// });
// var marker = new BMap.Marker(poi); //创建marker对象
// marker.enableDragging(); //marker可拖拽
// marker.addEventListener("click", function(e){
// searchInfoWindow.open(marker);
// })
// map.addOverlay(marker); //在地图中添加marker
//});
$('.Develop_TimeBox').slide({ mainCell: ".Develop_cont ul", titCell: ".Develop_sub li", autoPlay: false, effect: "top", pnLoop: false, trigger: 'click', prevCell: '.Time_up', nextCell: '.Time_down' });
$(".pro_dateleft dd").eq(0).removeClass("actives");
});
var dof = function doFix() {
var scrolla = $(window).scrollTop();
var htp = $('.Banners').height() + $('.proSlideBoxer').height() ;
if (scrolla > htp) {
$(".pro_dateleft").addClass("fixed");
} else if (scrolla < htp) {
$(".pro_dateleft").removeClass("fixed");
}
}
$(window).scroll(dof);
// 滚动时对应右边的菜单
var gundong = function gun() {
var heights = $(window).scrollTop();
var sumheight0 = $(".Banners").height() + $(".positions").height() + $(".proSlideBoxer").height();
var sumheight1 = $(".pro_date_subbox").eq(0).height() + sumheight0;
var sumheight2 = $(".pro_date_subbox").eq(1).height() + sumheight1;
var sumheight3 = $(".pro_date_subbox").eq(2).height() + sumheight2;
var sumheight4 = $(".pro_date_subbox").eq(3).height() + sumheight3;
var sumheight5 = $(".pro_date_subbox").eq(4).height() + sumheight4;
var sumheight6 = $(".pro_date_subbox").eq(5).height() + sumheight5;
//1
if (heights > sumheight0 && heights < sumheight1) {
$(".pro_dateleft dd").eq(0).addClass("actives");
} else {
$(".pro_dateleft dd").eq(0).removeClass("actives");
}
//2
if (heights > sumheight1 && heights < sumheight2) {
$(".pro_dateleft dd").eq(1).addClass("actives");
} else {
$(".pro_dateleft dd").eq(1).removeClass("actives");
}
//3
if (heights > sumheight2 && heights < sumheight3) {
$(".pro_dateleft dd").eq(2).addClass("actives");
} else {
$(".pro_dateleft dd").eq(2).removeClass("actives");
}
//4
if (heights > sumheight3 && heights < sumheight4) {
$(".pro_dateleft dd").eq(3).addClass("actives");
} else {
$(".pro_dateleft dd").eq(3).removeClass("actives");
}
//5
if (heights > sumheight4 && heights < sumheight5) {
$(".pro_dateleft dd").eq(4).addClass("actives");
} else {
$(".pro_dateleft dd").eq(4).removeClass("actives");
}
//5
if (heights > sumheight5) {
$(".pro_dateleft dd").eq(5).addClass("actives");
} else {
$(".pro_dateleft dd").eq(5).removeClass("actives");
}
}
$(window).scroll(gundong);
//导航定位结束
var dd = function dFix() {
var scrolla = $(window).scrollTop();
var htop = $('.Banners').height() + $(".D_tabs").height() + 40;
if (scrolla > htop) {
$(".Join_left").addClass("fixed");
} else if (scrolla < htop) {
$(".Join_left").removeClass("fixed");
}
}
$(window).scroll(dd);
var gundong02 = function gun02(){
var heights=$(window).scrollTop();
var sumheight0 = $(".Banners").height() + $(".D_tabs").height() + 30;
var sumheight1 = $(".Join_right_parts").eq(0).height() + sumheight0;
var sumheight2 = $(".Join_right_parts").eq(1).height() + sumheight1;
var sumheight3 = $(".Join_right_parts").eq(2).height() + sumheight2;
var sumheight4 = $(".Join_right_parts").eq(3).height() + sumheight3;
var sumheight5 = $(".Join_right_parts").eq(4).height() + sumheight4;
//1
if ( heights >= sumheight0 && heights < sumheight1){
$(".Join_left_nav a").eq(0).addClass("On_act");
}else{
$(".Join_left_nav a").eq(0).removeClass("On_act");
}
//2
if (heights > sumheight1 && heights < sumheight2){
$(".Join_left_nav a").eq(1).addClass("On_act");
}else{
$(".Join_left_nav a").eq(1).removeClass("On_act");
}
//3
if (heights > sumheight2 && heights < sumheight3){
$(".Join_left_nav a").eq(2).addClass("On_act");
}else{
$(".Join_left_nav a").eq(2).removeClass("On_act");
}
//4
if (heights > sumheight3 && heights < sumheight4){
$(".Join_left_nav a").eq(3).addClass("On_act");
}else{
$(".Join_left_nav a").eq(3).removeClass("On_act");
}
}
$(window).scroll(gundong02);
$(document).ready(function () {
$('.Join_left_nav a').click(function () {
var ida = $('.Join_left_nav a').index(this);
$('Join_left_nav a').removeClass("On_act");
$(this).addClass("On_act");
$('html,body').animate({ scrollTop: $(".Join_right_parts").eq(ida).offset().top - 89 }, 500);
});
$('.FreeRead').click(function () {
$('.Show_cont').fadeIn(800);
});
$('.offSet').click(function () {
$('.Show_cont').fadeOut(800);
});
$('.IconBox a').click(function () {
var b = $('.IconBox a').index(this);
$('.IconBox a').removeClass('on');
$(this).addClass('on');
$('html,body').animate({ scrollTop: $(".Join_container").eq(b).offset().top }, 500);
});
$('.Apply').click(function () {
$('.Up_doc').fadeIn(800);
});
});
var gundong03 = function gun02() {
var heights = $(window).scrollTop();
var sumheight0 = 0;
var sumheight1 = $(".Join_container").eq(0).height() + sumheight0 - 200;
var sumheight2 = $(".Join_container").eq(1).height() + sumheight1;
//1
if (heights >= sumheight0 && heights < sumheight1) {
$(".IconBox a").eq(0).addClass("on");
} else {
$(".IconBox a").eq(0).removeClass("on");
}
//2
if (heights > sumheight1) {
$(".IconBox a").eq(1).addClass("on");
} else {
$(".IconBox a").eq(1).removeClass("on");
}
}
$(window).scroll(gundong03);