755 lines
24 KiB
JavaScript
755 lines
24 KiB
JavaScript
/*public*/
|
|
|
|
|
|
|
|
|
|
/*public*//*ea_h*/
|
|
/*t_search*/
|
|
/*end_t_search*/
|
|
/*t_ver*/
|
|
$(function(){
|
|
$('.t_ver ul').hover(function(){
|
|
$('.t_ver ul').css({ height: 'auto'});
|
|
},function(){
|
|
$('.t_ver ul').css({ height: '20px'});
|
|
})
|
|
})
|
|
/*end_t_ver*/
|
|
/*t_logo*/
|
|
/*end_t_logo*/
|
|
/*xn_n_14_wrap*/
|
|
/*end_xn_n_14_wrap*/
|
|
/*ea_h*/
|
|
/*ea_ba*/
|
|
/*xn_ba_js_13_banner*/
|
|
var xn_ba_js_13_autoPlay = true;
|
|
var xn_ba_js_13_interval = 8000;
|
|
var bannerW = "100%";
|
|
var xn_ba_js_13_nextfunc;
|
|
var xn_ba_js_13_timer;
|
|
$(document).ready(function () {
|
|
if ($("#xn_ba_js_13_banner").length>0) {
|
|
xn_ba_js_13_start();
|
|
$("#xn_ba_js_13_banner").hover(function(){
|
|
window.clearInterval(xn_ba_js_13_timer);
|
|
},function(){
|
|
xn_ba_js_13_start();
|
|
})
|
|
};
|
|
});
|
|
var xn_ba_js_13_start = function () {
|
|
var maxLen = 0;
|
|
var index = 0;
|
|
var prev = -1;
|
|
var imgW, imgH, sizeW, sizeH = 0;
|
|
var running = false;
|
|
maxLen = $(".xn_ba_js_13_element").length;
|
|
imgW = $(".xn_ba_js_13_bigImg").find("img").eq(0).width();
|
|
imgH = $(".xn_ba_js_13_bigImg").find("img").eq(0).height();
|
|
for (var i = 0; i < $(".xn_ba_js_13_element").length; i++) {
|
|
var ele = $(".xn_ba_js_13_element").eq(i).find("img");
|
|
ele.attr("src", ele.attr("data-original"));
|
|
}
|
|
var btnData = "";
|
|
for (var i = 0; i < maxLen; i++) btnData += '<li class="xn_ba_js_13_element_btn">';
|
|
$(".xn_ba_js_13_btn").html(btnData);
|
|
var btn = $(".xn_ba_js_13_btn").find("li").eq(0);
|
|
var btnW = btn.width() + Math.round(btn.css("margin-left").replace(/[a-zA-Z]/g, ""));
|
|
$(".xn_ba_js_13_btn").css("width", maxLen * btnW);
|
|
btn.attr("class", "xn_ba_js_13_element_btn_on");
|
|
$(".xn_ba_js_13_banner").css("visibility", "visible");
|
|
for (var i = 0; i < maxLen; i++) {
|
|
$(".xn_ba_js_13_element").eq(i).attr("id", "ea_ba_no_b_" + i);
|
|
var _pos = Math.round(imgW * (i - index) + sizeW / 2 - imgW / 2);
|
|
if (i == index) _opa = 1;
|
|
if (_pos > sizeW) {
|
|
_pos -= maxLen * imgW
|
|
} else if (_pos < -imgW) {
|
|
_pos += maxLen * imgW
|
|
}
|
|
$(".xn_ba_js_13_element").eq(i).css({
|
|
left: _pos,
|
|
opacity: 0
|
|
}).animate({
|
|
opacity: _opa
|
|
}, {
|
|
duration: 400,
|
|
easing: 'linear'
|
|
})
|
|
}
|
|
onResize();
|
|
$(window).resize(onResize);
|
|
function onResize() {
|
|
for (var i = 0; i < maxLen; i++) {
|
|
if (bannerW == "100%") {
|
|
sizeW = $(window).width();
|
|
} else {
|
|
sizeW = parseInt(bannerW);
|
|
}
|
|
var _pos = Math.round(imgW * (i - index) + sizeW / 2 - imgW / 2);
|
|
var _opa = 1;
|
|
if (i == index) _opa = 1;
|
|
if (_pos > sizeW) {
|
|
_pos -= maxLen * imgW
|
|
}
|
|
$(".xn_ba_js_13_element").eq(i).stop().css({
|
|
left: _pos,
|
|
opacity: _opa
|
|
})
|
|
}
|
|
};
|
|
$(".xn_ba_js_13_btn li").each(function (i) {
|
|
$(this).click(function () {clearInterval(xn_ba_js_13_timer);
|
|
skipHandler((i));
|
|
});
|
|
});
|
|
$("#xn_ba_js_13_prev").hover(function(){
|
|
clearInterval(xn_ba_js_13_timer);
|
|
},function(){
|
|
xn_ba_js_13_timer = setInterval(xn_ba_js_13_nextfunc, xn_ba_js_13_interval);
|
|
});
|
|
//左右切换
|
|
$("#xn_ba_js_13_prev").click(function(){
|
|
var cur = index;
|
|
cur++;
|
|
if (cur > maxLen - 1) cur = 0;
|
|
skipHandler(cur);
|
|
});
|
|
$("#xn_ba_js_13_next").click(function(){
|
|
var cur = index;
|
|
cur--;
|
|
if (cur < 0) cur = maxLen - 1;
|
|
skipHandler(cur);
|
|
});
|
|
timerRepeat();
|
|
function skipHandler(target) {
|
|
if (target == index) return;
|
|
var d = 1;
|
|
var pure = index;
|
|
if (target < pure) d = -1;
|
|
var btn = $(".xn_ba_js_13_btn").find("li");
|
|
btn.eq(pure).attr("class", "xn_ba_js_13_element_btn");
|
|
btn.eq(target).attr("class", "xn_ba_js_13_element_btn_on");
|
|
var len;
|
|
if (d == 1) {
|
|
len = target - pure;
|
|
if (len <= 1) {
|
|
index = target;
|
|
nextPage();
|
|
} else {
|
|
for (var k = pure; k <= target; k++) {
|
|
index = k;
|
|
nextPage();
|
|
}
|
|
}
|
|
} else {
|
|
len = index - target;
|
|
if (len <= 1) {
|
|
index = target;
|
|
prevPage();
|
|
} else {
|
|
for (var k = index; k >= target; k--) {
|
|
index = k;
|
|
prevPage();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
function timerRepeat() {
|
|
if (!xn_ba_js_13_autoPlay) return;
|
|
xn_ba_js_13_nextfunc = isPause;
|
|
xn_ba_js_13_timer = setInterval(xn_ba_js_13_nextfunc, xn_ba_js_13_interval);
|
|
}
|
|
function isPause() {
|
|
var isRun = true;
|
|
if (typeof parent.runonce != 'undefined') {
|
|
isRun = parent.runonce;
|
|
}
|
|
if (isRun) {
|
|
var cur = index;
|
|
cur++;
|
|
if (cur > maxLen - 1) cur = 0;
|
|
skipHandler(cur);
|
|
return false;
|
|
} else {
|
|
return true;
|
|
}
|
|
}
|
|
function nextPage() {
|
|
if (xn_ba_js_13_timer) {
|
|
clearInterval(xn_ba_js_13_timer);
|
|
timerRepeat();
|
|
}
|
|
if ($(window.parent.bannerparam).length > 0) {
|
|
window.parent.bannerparam.cur_ba_index = index;
|
|
}
|
|
_pict = $(".xn_ba_js_13_element");
|
|
for (var i = 0; i < maxLen; i++) {
|
|
var _pos = Math.round(imgW * (i - index) + sizeW / 2 - imgW / 2);
|
|
var _opa = 1;
|
|
if (i == index) _opa = 1;
|
|
if (_pos > sizeW) {
|
|
_pos -= maxLen * imgW
|
|
} else if (_pos < -imgW * 2) {
|
|
_pos += maxLen * imgW
|
|
}
|
|
_pict.eq(i).stop().css({
|
|
left: _pos + imgW
|
|
}).animate({
|
|
left: _pos,
|
|
opacity: _opa
|
|
}, {
|
|
duration: 700,
|
|
easing: 'easeOutQuint'
|
|
})
|
|
}
|
|
}
|
|
function prevPage() {
|
|
if (xn_ba_js_13_timer) {
|
|
clearInterval(xn_ba_js_13_timer);
|
|
timerRepeat();
|
|
}
|
|
if ($(window.parent.bannerparam).length > 0) {
|
|
window.parent.bannerparam.cur_ba_index = index;
|
|
}
|
|
for (var i = 0; i < maxLen; i++) {
|
|
var _pos = Math.round(imgW * (i - index) + sizeW / 2 - imgW / 2);
|
|
if (_pos < -imgW) {
|
|
_pos += maxLen * imgW
|
|
} else if (_pos > sizeW + imgW) {
|
|
_pos -= maxLen * imgW
|
|
}
|
|
$(".xn_ba_js_13_element").eq(i).stop().css({
|
|
left: _pos - imgW
|
|
}).animate({
|
|
left: _pos
|
|
}, {
|
|
duration: 700,
|
|
easing: 'easeOutQuint'
|
|
})
|
|
}
|
|
}
|
|
}
|
|
jQuery.extend(jQuery.easing, {
|
|
def: 'easeOutQuint',
|
|
swing: function (x, t, b, c, d) {
|
|
return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
|
|
}, easeOutQuint: function (x, t, b, c, d) {
|
|
return c * ((t = t / d - 1) * t * t * t * t + 1) + b;
|
|
}
|
|
});
|
|
/*end_xn_ba_js_13_banner*/
|
|
/*ea_ba*/
|
|
/*ea_c*/
|
|
|
|
|
|
|
|
/*xn_c_index_610_wrap*/
|
|
$(function(){
|
|
$(".index_img").click(function(){
|
|
$(this).fadeOut(500);
|
|
})
|
|
if($('.xn_c_index_610_wrap').length<0){
|
|
return false;
|
|
}
|
|
var inow=0;
|
|
var html='';
|
|
$('.xn_c_index_610_right ul li').hover(function(){
|
|
inow=$(this).index();
|
|
seturl(inow);
|
|
})
|
|
function seturl(i){
|
|
$('.xn_c_index_610_right ul li').eq(i).addClass('active').siblings().removeClass('active');
|
|
html=$('.xn_c_index_610_right ul li').eq(i).find('.xn_c_index_610_url').html();
|
|
$('.xn_c_index_610_left').html(html);
|
|
}
|
|
seturl(inow);
|
|
})
|
|
/*end_xn_c_index_610_wrap*/
|
|
/*xn_c_100_wrap*/
|
|
$(function(){
|
|
if(!$("#xn_c_100_wrap").length>0){
|
|
return;
|
|
}
|
|
;(function($){
|
|
$.fn.extend({
|
|
ESlide2:function(left,right,isScroll,time){
|
|
var $items = this;
|
|
var $left=left;
|
|
var $right=right;
|
|
var _isScroll=isScroll||true;
|
|
var timer=time||3000;
|
|
var $out =$left.parent();
|
|
var iLilen=$items.children().length;
|
|
var $items_li=$items.children();
|
|
var li_width=parseInt($items_li.outerWidth(true));
|
|
var curr=0;
|
|
var prev=0;
|
|
var html="<div class='dotBox'></div>";
|
|
//初始化
|
|
$items_li.css({
|
|
"position":"absolute",
|
|
"top":0,
|
|
"left":li_width+"px"
|
|
})
|
|
$items_li.first().css("left",0);
|
|
$items.parent().append(html);
|
|
var $dotBox=$items.parent().find(".dotBox");
|
|
for(var i=0;i<iLilen;i++){
|
|
$dotBox.append("<span></span>");
|
|
}
|
|
var $dotSpan=$dotBox.children();
|
|
$dotSpan.first().addClass("curr");
|
|
$items_li.first().addClass("curr");
|
|
if(iLilen==1){
|
|
return;
|
|
}
|
|
$left.click(function(){
|
|
if(curr==iLilen-1){
|
|
return;
|
|
}
|
|
prev=curr;
|
|
curr++;
|
|
nextImg();
|
|
});
|
|
$right.click(function(){
|
|
if(curr==0){
|
|
return;
|
|
}
|
|
prev=curr;
|
|
curr--;
|
|
prevImg();
|
|
});
|
|
function nextImg(){
|
|
$items_li.eq(curr).css({"left":li_width+"px"});
|
|
$items_li.eq(curr).animate({"left":0},500);
|
|
$items_li.eq(prev).animate({"left":-li_width+"px"},500);
|
|
$dotSpan.eq(curr).addClass("curr").siblings().removeClass("curr");
|
|
$items_li.eq(curr).addClass("curr").siblings().removeClass("curr");
|
|
}
|
|
function prevImg(){
|
|
$items_li.eq(curr).css({"left":-li_width+"px"});
|
|
$items_li.eq(curr).animate({"left":0},500);
|
|
$items_li.eq(prev).animate({"left":li_width+"px"},500);
|
|
$dotSpan.eq(curr).addClass("curr").siblings().removeClass("curr");
|
|
$items_li.eq(curr).addClass("curr").siblings().removeClass("curr");
|
|
}
|
|
$dotSpan.on("click",function(e){
|
|
var _index=$(this).index();
|
|
prev=curr;
|
|
curr=_index;
|
|
(_index>prev)?prevImg():nextImg();
|
|
})
|
|
function arrowScroll(){
|
|
if(curr==iLilen-1){
|
|
prev=curr;
|
|
curr=0;
|
|
}else{
|
|
prev=curr;
|
|
curr++;
|
|
}
|
|
nextImg();
|
|
};
|
|
if(_isScroll){ 0
|
|
var auto = setInterval(arrowScroll,timer);
|
|
$out.hover(function(){
|
|
clearInterval(auto);
|
|
},function(){
|
|
auto = setInterval(arrowScroll,timer);
|
|
});
|
|
}
|
|
}
|
|
})
|
|
})(jQuery);
|
|
$(".xn_c_100_innerBox").ESlide2($(".xn_c_100_left"),$(".xn_c_100_right"),false,4000);
|
|
})
|
|
/*end_xn_c_100_wrap*/
|
|
|
|
|
|
|
|
/*xn_c_index_275_wrap*/
|
|
$(function(){
|
|
if($("#xn_c_index_275_cWrap").length > 0){
|
|
var $tUl = $("#xn_c_index_275_tUl");
|
|
var $tLi = $tUl.children("li");
|
|
var $cUl = $("#xn_c_index_275_cUl");
|
|
var $cLi = $cUl.children("li");
|
|
var $cWrap = $("#xn_c_index_275_cWrap");
|
|
var $cMain = $(".xn_c_index_275_cMain");
|
|
var currClass = "xn_c_index_275_tCurr";
|
|
var $left = $("#xn_c_index_275_left");
|
|
var $right = $("#xn_c_index_275_right");
|
|
var $wrap = $("#xn_c_index_275_wrap");
|
|
var speed = 500;
|
|
var isAutoPlay = true;
|
|
var timeInterval = 12000;
|
|
$tLi.first().addClass(currClass);
|
|
$cLi.each(function(){
|
|
var _this = $(this);
|
|
_this.attr("index",_this.index());
|
|
});
|
|
$cLi.css("width",$cWrap.outerWidth(true));
|
|
$cUl.css("width",$cLi.outerWidth(true) * $cLi.length).css("position","relative").css("left","0");
|
|
var idx = 1;
|
|
var size = $cLi.size();
|
|
//点击类别切换:
|
|
$tLi.first().addClass(currClass);
|
|
$("#xn_c_index_275_cImg img").load(function(){
|
|
$cUl.css("height",$cLi.eq(0).outerHeight(true));
|
|
});
|
|
$tLi.click(function(){
|
|
var _this = $(this);
|
|
idx = _this.index()+1;
|
|
$cUl.stop().animate({"left":"-"+$cLi.outerWidth(true) * _this.index()},speed);
|
|
_this.addClass(currClass).siblings().removeClass(currClass);
|
|
});
|
|
$cMain.each(function(){
|
|
$(this).css("width",$(this).children("li").length * $(this).children("li").outerWidth(true));
|
|
});
|
|
|
|
|
|
|
|
//选项卡左右切换:
|
|
function nextDiv(){
|
|
if(idx < $cLi.length){
|
|
$cUl.stop().animate({"left":"-"+$cLi.outerWidth(true)*idx},speed);
|
|
$tLi.eq(idx).addClass(currClass).siblings().removeClass(currClass);
|
|
idx++;
|
|
}else{
|
|
$cUl.stop().animate({"left":"-"+$cLi.outerWidth(true)*($cLi.length-1) - 100 +"px"},speed/$cLi.length);
|
|
$cUl.animate({"left":"-"+$cLi.outerWidth(true)*($cLi.length-1)},speed/$cLi.length);
|
|
}
|
|
}
|
|
function prevDiv(){
|
|
if(idx > 1){
|
|
idx--;
|
|
$cUl.stop().animate({"left":"-"+$cLi.outerWidth(true)*(idx-1)});
|
|
$tLi.eq(idx-1).addClass(currClass).siblings().removeClass(currClass);
|
|
}else{
|
|
$cUl.stop().animate({"left":100+"px"},speed/$cLi.length);
|
|
$cUl.animate({"left":0},speed/$cLi.length);
|
|
}
|
|
}
|
|
//点击箭头左右切换:
|
|
$left.click(function(){
|
|
prevImg(4);
|
|
});
|
|
$right.click(function(){
|
|
|
|
nextImg();
|
|
});
|
|
|
|
//
|
|
|
|
|
|
function tab_prev(){
|
|
var _this = $(".xn_c_index_275_tUl").children(".xn_c_index_275_tCurr");
|
|
idx = _this.index()-1;
|
|
console.log(idx)
|
|
if (idx<0) {
|
|
|
|
}
|
|
else
|
|
{
|
|
$cUl.stop().animate({"left":"-"+$cLi.outerWidth(true) * idx },speed);
|
|
$(".xn_c_index_275_tUl li").eq(idx).addClass("xn_c_index_275_tCurr").siblings().removeClass("xn_c_index_275_tCurr");
|
|
}
|
|
}
|
|
|
|
|
|
function tab_next(){
|
|
var _this = $(".xn_c_index_275_tUl").children(".xn_c_index_275_tCurr");
|
|
idx = _this.index()+1;
|
|
if (idx<=size-1) {
|
|
$(".xn_c_index_275_tUl li").eq(idx).addClass("xn_c_index_275_tCurr").siblings().removeClass("xn_c_index_275_tCurr");
|
|
$cUl.stop().animate({"left":"-"+$cLi.outerWidth(true) * idx },speed);
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
$(".xn_c_index_2705_left").click(function(){
|
|
|
|
tab_prev();
|
|
// nextImg();
|
|
})
|
|
|
|
|
|
$(".xn_c_index_2705_right").click(function(){
|
|
|
|
tab_next();
|
|
})
|
|
|
|
|
|
|
|
|
|
function prevImg(){
|
|
var _index = $(".xn_c_index_275_tCurr").index();
|
|
var $items = $(".xn_c_index_275_cLi").eq(_index).children("ul");
|
|
var $items_child_width = $items.children("li").outerWidth(true);
|
|
$items.css("position","relative");
|
|
$items.css('left',-$items_child_width*4);
|
|
$items.prepend($items.children().last());
|
|
$items.prepend($items.children().last());
|
|
$items.prepend($items.children().last());
|
|
$items.prepend($items.children().last());
|
|
$items.stop().animate({"left":0},speed);
|
|
}
|
|
function nextImg(){
|
|
var _index = $(".xn_c_index_275_tCurr").index();
|
|
var $items = $(".xn_c_index_275_cLi").eq(_index).children("ul");
|
|
var $items_child_width = $items.children("li").outerWidth(true);
|
|
$items.css("position","relative");
|
|
$items.stop().animate({left:"-"+$items_child_width*4 +"px"},speed,function(){
|
|
$items.append($items.children().first());
|
|
$items.append($items.children().first());
|
|
$items.append($items.children().first());
|
|
$items.append($items.children().first());
|
|
$items.css("left",0);
|
|
});
|
|
}
|
|
function nextImg2(){
|
|
var _index = $(".xn_c_index_275_tCurr").index();
|
|
var $items = $(".xn_c_index_275_cLi").eq(_index).children("ul");
|
|
var $items_child_width = $items.children("li").outerWidth(true);
|
|
$items.css("position","relative");
|
|
$items.stop().animate({left:"-"+$items_child_width +"px"},speed,function(){
|
|
$items.append($items.children().first());
|
|
$items.css("left",0);
|
|
});
|
|
}
|
|
var autoPlay = null;
|
|
if(isAutoPlay == true){
|
|
autoPlay = setInterval(nextImg2,timeInterval);
|
|
$wrap.hover(function(){
|
|
clearInterval(autoPlay);
|
|
},function(){
|
|
autoPlay = setInterval(nextImg2,timeInterval);
|
|
});
|
|
}
|
|
}
|
|
});
|
|
/*end_xn_c_index_275_wrap*/
|
|
|
|
|
|
|
|
/*xn_c_index_276_wrap*/
|
|
$(function(){
|
|
if($("#xn_c_index_276_wrap").length > 0){
|
|
var $tUl = $("#xn_c_index_276_tUl");
|
|
var $tLi = $tUl.children("li");
|
|
var $cUl = $("#xn_c_index_276_cUl");
|
|
var $cLi = $cUl.children("li");
|
|
var $cWrap = $("#xn_c_index_276_cWrap");
|
|
var $cMain = $(".xn_c_index_276_cMain");
|
|
var currClass = "xn_c_index_276_tCurr";
|
|
var $left = $("#xn_c_index_276_left");
|
|
var $right = $("#xn_c_index_276_right");
|
|
var $wrap = $("#xn_c_index_276_wrap");
|
|
var speed = 500;
|
|
var isAutoPlay = true;
|
|
var timeInterval = 3000;
|
|
$tLi.first().addClass(currClass);
|
|
$cLi.each(function(){
|
|
var _this = $(this);
|
|
_this.attr("index",_this.index());
|
|
});
|
|
$cLi.css("width",$cWrap.outerWidth(true));
|
|
$cUl.css("width",$cLi.outerWidth(true) * $cLi.length).css("position","relative");
|
|
var idx = 1;
|
|
var size = $cLi.size();
|
|
//点击类别切换:
|
|
$tLi.first().addClass(currClass);
|
|
$("#xn_c_index_276_cImg img").load(function(){
|
|
$cUl.css("height",$cLi.eq(0).outerHeight(true));
|
|
});
|
|
$tLi.click(function(){
|
|
var _this = $(this);
|
|
idx = _this.index()+1;
|
|
$cUl.stop().animate({"left":"-"+$cLi.outerWidth(true) * _this.index()},speed);
|
|
_this.addClass(currClass).siblings().removeClass(currClass);
|
|
});
|
|
$cMain.each(function(){
|
|
$(this).css("width",$(this).children("li").length * $(this).children("li").outerWidth(true));
|
|
});
|
|
//选项卡左右切换:
|
|
function nextDiv(){
|
|
if(idx < $cLi.length){
|
|
$cUl.stop().animate({"left":"-"+$cLi.outerWidth(true)*idx},speed);
|
|
$tLi.eq(idx).addClass(currClass).siblings().removeClass(currClass);
|
|
idx++;
|
|
}else{
|
|
$cUl.stop().animate({"left":"-"+$cLi.outerWidth(true)*($cLi.length-1) - 100 +"px"},speed/$cLi.length);
|
|
$cUl.animate({"left":"-"+$cLi.outerWidth(true)*($cLi.length-1)},speed/$cLi.length);
|
|
}
|
|
}
|
|
function prevDiv(){
|
|
if(idx > 1){
|
|
idx--;
|
|
$cUl.stop().animate({"left":"-"+$cLi.outerWidth(true)*(idx-1)});
|
|
$tLi.eq(idx-1).addClass(currClass).siblings().removeClass(currClass);
|
|
}else{
|
|
$cUl.stop().animate({"left":100+"px"},speed/$cLi.length);
|
|
$cUl.animate({"left":0},speed/$cLi.length);
|
|
}
|
|
}
|
|
//点击箭头左右切换:
|
|
$left.click(function(){
|
|
prevImg();
|
|
});
|
|
$right.click(function(){
|
|
nextImg();
|
|
});
|
|
function prevImg(){
|
|
var _index = $(".xn_c_index_276_tCurr").index();
|
|
var $items = $(".xn_c_index_276_cLi").eq(_index-4).children("ul");
|
|
var $items_child_width = $items.children("li").outerWidth(true);
|
|
$items.css("position","relative");
|
|
$items.css('left',-$items_child_width);
|
|
$items.prepend($items.children().last());
|
|
$items.stop().animate({"left":0},speed);
|
|
}
|
|
function nextImg(){
|
|
var _index = $(".xn_c_index_276_tCurr").index();
|
|
var $items = $(".xn_c_index_276_cLi").eq(_index+4).children("ul");
|
|
var $items_child_width = $items.children("li").outerWidth(true);
|
|
$items.css("position","relative");
|
|
$items.stop().animate({left:"-"+$items_child_width +"px"},speed,function(){
|
|
$items.append($items.children().first());
|
|
$items.css("left",0);
|
|
});
|
|
}
|
|
var autoPlay = null;
|
|
if(isAutoPlay == true){
|
|
autoPlay = setInterval(nextImg,timeInterval);
|
|
$wrap.hover(function(){
|
|
clearInterval(autoPlay);
|
|
},function(){
|
|
autoPlay = setInterval(nextImg,timeInterval);
|
|
});
|
|
}
|
|
}
|
|
});
|
|
/*end_xn_c_index_276_wrap*/
|
|
|
|
|
|
|
|
|
|
|
|
/*xn_c_index_39_wrap*/
|
|
$(function(){
|
|
$('.xn_c_index_39_nrboxsmall').hover(function(){
|
|
$(this).children().children('.xn_c_index_39_time').css({ color: '#0072A8', border: '1px solid #0072A8' });
|
|
$(this).children().children('.xn_c_index_39_title').children().css({ color: '#0072A8'});
|
|
},function(){
|
|
$(this).children().children('.xn_c_index_39_time').css({ color: '#999', border: '1px solid #dadada' });
|
|
$(this).children().children('.xn_c_index_39_title').children().css({ color: '#434343'});
|
|
})
|
|
})
|
|
/*end_xn_c_index_39_wrap*/
|
|
/*xn_c_index_14_industry*/
|
|
/*end_xn_c_index_14_industry*/
|
|
/*xn_c_index_13_company*/
|
|
/*end_xn_c_index_13_company*/
|
|
/*xn_c_index_175_wrap*/
|
|
$(function(){
|
|
$('.xn_c_index_175_wbox').append(' <a class="index_175_more_btn" href="/solution.aspx?FId=n25:25:25"></a>')
|
|
$('.xn_c_index_175_wbox>div').hover(function(){
|
|
$(this).find('.xn_c_index_175_name a').css({ color: '#0072A6'});
|
|
$(this).find('.xn_c_index_175_intro').css({ color: '#fff'});
|
|
$(this).find('.xn_c_index_175_img').css({ backgroundPosition: 'center 0'});
|
|
},function(){
|
|
$(this).find('.xn_c_index_175_name a').css({ color: '#fff'});
|
|
$(this).find('.xn_c_index_175_intro').css({ color: '#888'});
|
|
$(this).find('.xn_c_index_175_img').css({ backgroundPosition: 'center -145px'});
|
|
})
|
|
})
|
|
/*end_xn_c_index_175_wrap*/
|
|
/*xn_c_index_44_wrap*/
|
|
$(function(){
|
|
/*$('.xn_c_index_44_wbox').append('<a class="index_44_left prev"></a><a class="index_44_right next"></a>')
|
|
$(".xn_c_index_44_wbox").slide({
|
|
titCell:"",
|
|
mainCell:".xn_c_index_44_nrwbox",
|
|
autoPage:true,
|
|
effect:"leftLoop",
|
|
autoPlay:true,
|
|
vis:4
|
|
});
|
|
$('.xn_c_index_44_neibiebox').hover(function(){
|
|
$(this).children('.xn_c_index_44_nbname').addClass('addclass');
|
|
},function(){
|
|
$(this).children('.xn_c_index_44_nbname').removeClass('addclass');
|
|
})*/
|
|
})
|
|
/*end_xn_c_index_44_wrap*/
|
|
/*i_tcase*/
|
|
$(function(){
|
|
$('.i_tcase_main').hover(function(){
|
|
$(this).children('.i_tcase_main_name').show();
|
|
},function(){
|
|
$(this).children('.i_tcase_main_name').hide();
|
|
})
|
|
})
|
|
/*end_i_tcase*/
|
|
/*xn_c_index_131_wrap*/
|
|
$(function(){
|
|
var $items = $("#xn_c_index_131_wbox");
|
|
var $out = $("#xn_c_index_131_wrap");
|
|
var $items_child_width = $items.children().outerWidth(true);
|
|
var iLilen=$items.children(".xn_c_index_131_list").length;
|
|
$items.css('width',$items_child_width*iLilen+'px');
|
|
var $left = $("#xn_c_index_131_left");
|
|
var $right = $("#xn_c_index_131_right");
|
|
var isAutoPlay = true; //是否自动播放
|
|
var speed = 500; //滚动速度
|
|
var timeInterval = 3000; //间隔时间
|
|
$left.click(function(){
|
|
nextImg();
|
|
});
|
|
$right.click(function(){
|
|
prevImg();
|
|
});
|
|
function nextImg(){
|
|
$items.stop().animate({left:"-"+$items_child_width +"px"},speed,function(){
|
|
$items.append($items.children().first());
|
|
$items.css("left",0);
|
|
});
|
|
}
|
|
function prevImg(){
|
|
$items.css('left',-$items_child_width);
|
|
$items.prepend($items.children().last());
|
|
$items.stop().animate({"left":0},speed);
|
|
}
|
|
function arrowScroll(){
|
|
nextImg();
|
|
};
|
|
if(isAutoPlay == true){
|
|
var auto = setInterval(arrowScroll,timeInterval);
|
|
$out.hover(function(){
|
|
clearInterval(auto);
|
|
},function(){
|
|
auto = setInterval(arrowScroll,timeInterval);
|
|
});
|
|
}
|
|
});
|
|
/*end_xn_c_index_131_wrap*/
|
|
/*ea_c*//*ea_b*/
|
|
/*foot_nav*/
|
|
/*end_foot_nav*/
|
|
/*xn_f_18_wrap*/
|
|
/*end_xn_f_18_wrap*/
|
|
/*foot_copy*/
|
|
/*end_foot_copy*/
|
|
/*xn_f_2_warp*/
|
|
/*end_xn_f_2_warp*/
|
|
/*ea_b*/
|
|
/*ea_bg*/
|
|
/*ea_bg*//*ea_m*/
|
|
/*ea_m*/
|
|
|
|
/*ea_pi*/
|
|
/*ea_pi*/
|
|
/*ea_wj*/
|
|
/*ea_wj*/ |