Difference between revisions of "Team:SSTi-SZGD/js/Public Engagement"

(Created page with "自定义Human Practices效果: $(function(){ $(".header .nav .mainnav").eq(4).hover(function(){ $(".header .nav .Human_Practices span").css("color","#FAEE0D"); },fun...")
 
 
(2 intermediate revisions by the same user not shown)
Line 10: Line 10:
 
});
 
});
  
/*延时加载*/
+
 +
 
 +
/*Content_nav*/
 
$(function(){
 
$(function(){
 
 
var winHeight=$(window).height();
+
var bannerHeight=$(".SSTi-SZGD").outerHeight()-$(window).scrollTop();
 
 
var April_29_img_totalTop=$(".img_total").eq(0).offset().top-$(window).scrollTop();
+
if(bannerHeight<=0){
var June_22_img_totalTop=$(".img_total").eq(1).offset().top-$(window).scrollTop();
+
$(".Content_nav").css({"position":"fixed","top":"10px"});
var July_11_img_totalTop=$(".img_total").eq(2).offset().top-$(window).scrollTop();
+
}else{
var July_26_img_totalTop=$(".img_total").eq(3).offset().top-$(window).scrollTop();
+
$(".Content_nav").css({"position":"absolute","top":"auto"});
var July_29_img_totalTop=$(".img_total").eq(4).offset().top-$(window).scrollTop();
+
}
 
 
var April_29_txtTop=$(".txt").offset().top-$(window).scrollTop();
+
$(window).scroll(function(){
var April_29_textTop=$(".text").eq(0).offset().top-$(window).scrollTop();
+
var June_22_textTop=$(".text").eq(1).offset().top-$(window).scrollTop();
+
var bannerHeight=$(".SSTi-SZGD").outerHeight()-$(window).scrollTop();
var July_11_textTop=$(".text").eq(2).offset().top-$(window).scrollTop();
+
var July_26_textTop=$(".text").eq(3).offset().top-$(window).scrollTop();
+
if(bannerHeight<=0){
var July_29_textTop=$(".text").eq(4).offset().top-$(window).scrollTop();
+
$(".Content_nav").css({"position":"fixed","top":"10px"});
 +
}else{
 +
$(".Content_nav").css({"position":"absolute","top":"auto"});
 +
}
 +
 +
});
 
 
var April_29_imgTop=$(".img").eq(0).offset().top-$(window).scrollTop();
+
/*锚链接跳转滑动*/
var June_22_imgTop=$(".img").eq(1).offset().top-$(window).scrollTop();
+
$('.Content_nav ul li a').click(function()
var July_11_imgTop=$(".img").eq(2).offset().top-$(window).scrollTop();
+
    $('html, body').animate(
var July_26_imgTop=$(".img").eq(3).offset().top-$(window).scrollTop();
+
        scrollTop: $( $.attr(this, 'href') ).offset().top
var July_29_imgTop=$(".img").eq(4).offset().top-$(window).scrollTop();
+
    }, 500);
var July_29_img2Top=$(".img2").offset().top-$(window).scrollTop();
+
    return false;
 +
});  
 
 
if(April_29_img_totalTop<winHeight-100){
+
});
setTimeout(function(){
+
 
$(".img_total").eq(0).children().addClass("a-fadein");
+
 
$(".img_total").eq(0).children().css("display","block");
+
 
$(".img_total").eq(0).css("height","auto");
+
 
},150);
+
/*轮播*/
}
+
$(function(){
if(June_22_img_totalTop<winHeight-100){
+
setTimeout(function(){
+
$(".img_total").eq(1).children().addClass("a-fadein");
+
$(".img_total").eq(1).children().css("display","block");
+
$(".img_total").eq(1).css("height","auto");
+
},150);
+
}
+
if(July_11_img_totalTop<winHeight-100){
+
setTimeout(function(){
+
$(".img_total").eq(2).children().addClass("a-fadein");
+
$(".img_total").eq(2).children().css("display","block");
+
$(".img_total").eq(2).css("height","auto");
+
},150);
+
}
+
if(July_26_img_totalTop<winHeight-100){
+
setTimeout(function(){
+
$(".img_total").eq(3).children().addClass("a-fadein");
+
$(".img_total").eq(3).children().css("display","block");
+
$(".img_total").eq(3).css("height","auto");
+
},150);
+
}
+
if(July_29_img_totalTop<winHeight-100){
+
setTimeout(function(){
+
$(".img_total").eq(4).children().addClass("a-fadein");
+
$(".img_total").eq(4).children().css("display","block");
+
$(".img_total").eq(4).css("height","auto");
+
},150);
+
}
+
 
 
if(April_29_txtTop<winHeight-100){
+
//public
setTimeout(function(){
+
var scrollLenth=$(".Content .img_total").outerWidth();
$(".txt").children().addClass("a-fadeinL");
+
$(".Content .img_total .scroll").css("left",-scrollLenth);
$(".txt").children().css("display","block");
+
$(".txt").css("height","auto");
+
},150);
+
}
+
if(April_29_textTop<winHeight-100){
+
setTimeout(function(){
+
$(".text").eq(0).children().addClass("a-fadeinL");
+
$(".text").eq(0).children().css("display","block");
+
$(".text").eq(0).css("height","auto");
+
},150);
+
}
+
if(June_22_textTop<winHeight-100){
+
setTimeout(function(){
+
$(".text").eq(1).children().addClass("a-fadeinL");
+
$(".text").eq(1).children().css("display","block");
+
$(".text").eq(1).css("height","auto");
+
},150);
+
}
+
if(July_11_textTop<winHeight-100){
+
setTimeout(function(){
+
$(".text").eq(2).children().addClass("a-fadeinL");
+
$(".text").eq(2).children().css("display","block");
+
$(".text").eq(2).css("height","auto");
+
},150);
+
}
+
if(July_26_textTop<winHeight-100){
+
setTimeout(function(){
+
$(".text").eq(3).children().addClass("a-fadeinL");
+
$(".text").eq(3).children().css("display","block");
+
$(".text").eq(3).css("height","auto");
+
},150);
+
}
+
if(July_29_textTop<winHeight-100){
+
setTimeout(function(){
+
$(".text").eq(4).children().addClass("a-fadeinL");
+
$(".text").eq(4).children().css("display","block");
+
$(".text").eq(4).css("height","auto");
+
},150);
+
}
+
 
 
$(window).scroll(function(){
+
//April_29
 +
$("#April_29 .img_total").hover(function(){
 +
 
 +
clearInterval(April_29_Time);
 +
$("#April_29 .img_total .icon_left").css("display","block");
 +
$("#April_29 .img_total .icon_right").css("display","block");
 
 
winHeight=$(window).height();
+
},function(){
 
 
April_29_img_totalTop=$(".img_total").eq(0).offset().top-$(window).scrollTop();
+
$("#April_29 .img_total .icon_left").css("display","none");
June_22_img_totalTop=$(".img_total").eq(1).offset().top-$(window).scrollTop();
+
$("#April_29 .img_total .icon_right").css("display","none");
July_11_img_totalTop=$(".img_total").eq(2).offset().top-$(window).scrollTop();
+
April_29_Time=setInterval("April_29_ScrollRight()",3000);
July_26_img_totalTop=$(".img_total").eq(3).offset().top-$(window).scrollTop();
+
July_29_img_totalTop=$(".img_total").eq(4).offset().top-$(window).scrollTop();
+
 
 
April_29_txtTop=$(".txt").offset().top-$(window).scrollTop();
+
});
April_29_textTop=$(".text").eq(0).offset().top-$(window).scrollTop();
+
June_22_textTop=$(".text").eq(1).offset().top-$(window).scrollTop();
+
$("#April_29 .img_total .icon_left").click(function(){
July_11_textTop=$(".text").eq(2).offset().top-$(window).scrollTop();
+
April_29_ScrollLeft();
July_26_textTop=$(".text").eq(3).offset().top-$(window).scrollTop();
+
});
July_29_textTop=$(".text").eq(4).offset().top-$(window).scrollTop();
+
 +
$("#April_29 .img_total .icon_right").click(function(){
 +
April_29_ScrollRight();
 +
});
 +
 +
//June_22
 +
$("#June_22 .img_total").hover(function(){
 +
 
 +
clearInterval(June_22_Time);
 +
$("#June_22 .img_total .icon_left").css("display","block");
 +
$("#June_22 .img_total .icon_right").css("display","block");
 
 
April_29_imgTop=$(".img").eq(0).offset().top-$(window).scrollTop();
+
},function(){
June_22_imgTop=$(".img").eq(1).offset().top-$(window).scrollTop();
+
July_11_imgTop=$(".img").eq(2).offset().top-$(window).scrollTop();
+
July_26_imgTop=$(".img").eq(3).offset().top-$(window).scrollTop();
+
July_29_imgTop=$(".img").eq(4).offset().top-$(window).scrollTop();
+
July_29_img2Top=$(".img2").offset().top-$(window).scrollTop();
+
 
 
if(April_29_img_totalTop<winHeight-100){
+
$("#June_22 .img_total .icon_left").css("display","none");
setTimeout(function(){
+
$("#June_22 .img_total .icon_right").css("display","none");
$(".img_total").eq(0).children().addClass("a-fadein");
+
June_22_Time=setInterval("June_22_ScrollRight()",3000);
$(".img_total").eq(0).children().css("display","block");
+
$(".img_total").eq(0).css("height","auto");
+
},150);
+
}
+
if(June_22_img_totalTop<winHeight-100){
+
setTimeout(function(){
+
$(".img_total").eq(1).children().addClass("a-fadein");
+
$(".img_total").eq(1).children().css("display","block");
+
$(".img_total").eq(1).css("height","auto");
+
},150);
+
}
+
if(July_11_img_totalTop<winHeight-100){
+
setTimeout(function(){
+
$(".img_total").eq(2).children().addClass("a-fadein");
+
$(".img_total").eq(2).children().css("display","block");
+
$(".img_total").eq(2).css("height","auto");
+
},150);
+
}
+
if(July_26_img_totalTop<winHeight-100){
+
setTimeout(function(){
+
$(".img_total").eq(3).children().addClass("a-fadein");
+
$(".img_total").eq(3).children().css("display","block");
+
$(".img_total").eq(3).css("height","auto");
+
},150);
+
}
+
if(July_29_img_totalTop<winHeight-100){
+
setTimeout(function(){
+
$(".img_total").eq(4).children().addClass("a-fadein");
+
$(".img_total").eq(4).children().css("display","block");
+
$(".img_total").eq(4).css("height","auto");
+
},150);
+
}
+
 
 
if(April_29_txtTop<winHeight-100){
+
});
setTimeout(function(){
+
$(".txt").children().addClass("a-fadeinL");
+
$("#June_22 .img_total .icon_left").click(function(){
$(".txt").children().css("display","block");
+
June_22_ScrollLeft();
$(".txt").css("height","auto");
+
});
},150);
+
}
+
$("#June_22 .img_total .icon_right").click(function(){
if(April_29_textTop<winHeight-100){
+
June_22_ScrollRight();
setTimeout(function(){
+
});
$(".text").eq(0).children().addClass("a-fadeinL");
+
$(".text").eq(0).children().css("display","block");
+
//July_11
$(".text").eq(0).css("height","auto");
+
$("#July_11 .img_total").hover(function(){
},150);
+
 
}
+
clearInterval(July_11_Time);
if(June_22_textTop<winHeight-100){
+
$("#July_11 .img_total .icon_left").css("display","block");
setTimeout(function(){
+
$("#July_11 .img_total .icon_right").css("display","block");
$(".text").eq(1).children().addClass("a-fadeinL");
+
$(".text").eq(1).children().css("display","block");
+
$(".text").eq(1).css("height","auto");
+
},150);
+
}
+
if(July_11_textTop<winHeight-100){
+
setTimeout(function(){
+
$(".text").eq(2).children().addClass("a-fadeinL");
+
$(".text").eq(2).children().css("display","block");
+
$(".text").eq(2).css("height","auto");
+
},150);
+
}
+
if(July_26_textTop<winHeight-100){
+
setTimeout(function(){
+
$(".text").eq(3).children().addClass("a-fadeinL");
+
$(".text").eq(3).children().css("display","block");
+
$(".text").eq(3).css("height","auto");
+
},150);
+
}
+
if(July_29_textTop<winHeight-100){
+
setTimeout(function(){
+
$(".text").eq(4).children().addClass("a-fadeinL");
+
$(".text").eq(4).children().css("display","block");
+
$(".text").eq(4).css("height","auto");
+
},150);
+
}
+
 
 
if(April_29_imgTop<winHeight-100){
+
},function(){
setTimeout(function(){
+
$(".img").eq(0).children().addClass("a-fadein");
+
$("#July_11 .img_total .icon_left").css("display","none");
$(".img").eq(0).children().css("display","block");
+
$("#July_11 .img_total .icon_right").css("display","none");
},150);
+
July_11_Time=setInterval("July_11_ScrollRight()",3000);
}
+
if(June_22_imgTop<winHeight-100){
+
setTimeout(function(){
+
$(".img").eq(1).children().addClass("a-fadein");
+
$(".img").eq(1).children().css("display","block");
+
},150);
+
}
+
if(July_11_imgTop<winHeight-100){
+
setTimeout(function(){
+
$(".img").eq(2).children().addClass("a-fadein");
+
$(".img").eq(2).children().css("display","block");
+
},150);
+
}
+
if(July_26_imgTop<winHeight-100){
+
setTimeout(function(){
+
$(".img").eq(3).children().addClass("a-fadein");
+
$(".img").eq(3).children().css("display","block");
+
},150);
+
}
+
if(July_29_imgTop<winHeight-100){
+
setTimeout(function(){
+
$(".img").eq(4).children().addClass("a-fadein");
+
$(".img").eq(4).children().css("display","block");
+
},150);
+
}
+
if(July_29_img2Top<winHeight-100){
+
setTimeout(function(){
+
$(".img2").children().addClass("a-fadein");
+
$(".img2").children().css("display","block");
+
},150);
+
}
+
 
 
 +
});
 +
 +
$("#July_11 .img_total .icon_left").click(function(){
 +
July_11_ScrollLeft();
 +
});
 +
 +
$("#July_11 .img_total .icon_right").click(function(){
 +
July_11_ScrollRight();
 +
});
 +
 +
//July_26
 +
$("#July_26 .img_total").hover(function(){
 +
 +
clearInterval(July_26_Time);
 +
$("#July_26 .img_total .icon_left").css("display","block");
 +
$("#July_26 .img_total .icon_right").css("display","block");
 +
 +
},function(){
 +
 +
$("#July_26 .img_total .icon_left").css("display","none");
 +
$("#July_26 .img_total .icon_right").css("display","none");
 +
July_26_Time=setInterval("July_26_ScrollRight()",3000);
 +
 +
});
 +
 +
$("#July_26 .img_total .icon_left").click(function(){
 +
July_26_ScrollLeft();
 +
});
 +
 +
$("#July_26 .img_total .icon_right").click(function(){
 +
July_26_ScrollRight();
 +
});
 +
 +
//July_29
 +
$("#July_29 .img_total").hover(function(){
 +
 +
clearInterval(July_29_Time);
 +
$("#July_29 .img_total .icon_left").css("display","block");
 +
$("#July_29 .img_total .icon_right").css("display","block");
 +
 +
},function(){
 +
 +
$("#July_29 .img_total .icon_left").css("display","none");
 +
$("#July_29 .img_total .icon_right").css("display","none");
 +
July_29_Time=setInterval("July_29_ScrollRight()",3000);
 +
 +
});
 +
 +
$("#July_29 .img_total .icon_left").click(function(){
 +
July_29_ScrollLeft();
 +
});
 +
 +
$("#July_29 .img_total .icon_right").click(function(){
 +
July_29_ScrollRight();
 
});
 
});
 
 
 
});
 
});
 +
 +
var April_29_Time=setInterval("April_29_ScrollRight()",3000);
 +
var June_22_Time=setInterval("June_22_ScrollRight()",3000);
 +
var July_11_Time=setInterval("July_11_ScrollRight()",3000);
 +
var July_26_Time=setInterval("July_26_ScrollRight()",3000);
 +
var July_29_Time=setInterval("July_29_ScrollRight()",3000);
 +
 +
//April_29
 +
function April_29_ScrollLeft(){
 +
 +
var scrollLenth=$("#April_29 .img_total").outerWidth();
 +
$("#April_29 .img_total .scroll").stop().animate({"left":"0px"},500,function(){
 +
$("#April_29 .img_total .scroll").prepend($("#April_29 .img_total .scroll img:last"));
 +
$("#April_29 .img_total .scroll").css({"left":-scrollLenth});
 +
});
 +
 +
}
 +
 +
function April_29_ScrollRight(){
 +
 +
var scrollLenth=$("#April_29 .img_total").outerWidth();
 +
$("#April_29 .img_total .scroll").stop().animate({"left":-scrollLenth*2},500,function(){
 +
$("#April_29 .img_total .scroll").append($("#April_29 .img_total .scroll img:first"));
 +
$("#April_29 .img_total .scroll").css({"left":-scrollLenth});
 +
});
 +
 +
}
 +
 +
//June_22
 +
function June_22_ScrollLeft(){
 +
 +
var scrollLenth=$("#June_22 .img_total").outerWidth();
 +
$("#June_22 .img_total .scroll").stop().animate({"left":"0px"},500,function(){
 +
$("#June_22 .img_total .scroll").prepend($("#June_22 .img_total .scroll img:last"));
 +
$("#June_22 .img_total .scroll").css({"left":-scrollLenth});
 +
});
 +
 +
}
 +
 +
function June_22_ScrollRight(){
 +
 +
var scrollLenth=$("#June_22 .img_total").outerWidth();
 +
$("#June_22 .img_total .scroll").stop().animate({"left":-scrollLenth*2},500,function(){
 +
$("#June_22 .img_total .scroll").append($("#June_22 .img_total .scroll img:first"));
 +
$("#June_22 .img_total .scroll").css({"left":-scrollLenth});
 +
});
 +
 +
}
 +
 +
//July_11
 +
function July_11_ScrollLeft(){
 +
 +
var scrollLenth=$("#July_11 .img_total").outerWidth();
 +
$("#July_11 .img_total .scroll").stop().animate({"left":"0px"},500,function(){
 +
$("#July_11 .img_total .scroll").prepend($("#July_11 .img_total .scroll img:last"));
 +
$("#July_11 .img_total .scroll").css({"left":-scrollLenth});
 +
});
 +
 +
}
 +
 +
function July_11_ScrollRight(){
 +
 +
var scrollLenth=$("#July_11 .img_total").outerWidth();
 +
$("#July_11 .img_total .scroll").stop().animate({"left":-scrollLenth*2},500,function(){
 +
$("#July_11 .img_total .scroll").append($("#July_11 .img_total .scroll img:first"));
 +
$("#July_11 .img_total .scroll").css({"left":-scrollLenth});
 +
});
 +
 +
}
 +
 +
//July_26
 +
function July_26_ScrollLeft(){
 +
 +
var scrollLenth=$("#July_26 .img_total").outerWidth();
 +
$("#July_26 .img_total .scroll").stop().animate({"left":"0px"},500,function(){
 +
$("#July_26 .img_total .scroll").prepend($("#July_26 .img_total .scroll img:last"));
 +
$("#July_26 .img_total .scroll").css({"left":-scrollLenth});
 +
});
 +
 +
}
 +
 +
function July_26_ScrollRight(){
 +
 +
var scrollLenth=$("#July_26 .img_total").outerWidth();
 +
$("#July_26 .img_total .scroll").stop().animate({"left":-scrollLenth*2},500,function(){
 +
$("#July_26 .img_total .scroll").append($("#July_26 .img_total .scroll img:first"));
 +
$("#July_26 .img_total .scroll").css({"left":-scrollLenth});
 +
});
 +
 +
}
 +
 +
//July_29
 +
function July_29_ScrollLeft(){
 +
 +
var scrollLenth=$("#July_29 .img_total").outerWidth();
 +
$("#July_29 .img_total .scroll").stop().animate({"left":"0px"},500,function(){
 +
$("#July_29 .img_total .scroll").prepend($("#July_29 .img_total .scroll img:last"));
 +
$("#July_29 .img_total .scroll").css({"left":-scrollLenth});
 +
});
 +
 +
}
 +
 +
function July_29_ScrollRight(){
 +
 +
var scrollLenth=$("#July_29 .img_total").outerWidth();
 +
$("#July_29 .img_total .scroll").stop().animate({"left":-scrollLenth*2},500,function(){
 +
$("#July_29 .img_total .scroll").append($("#July_29 .img_total .scroll img:first"));
 +
$("#July_29 .img_total .scroll").css({"left":-scrollLenth});
 +
});
 +
 +
}

Latest revision as of 07:07, 18 September 2017

/*自定义Human Practices效果*/ $(function(){

$(".header .nav .mainnav").eq(4).hover(function(){ $(".header .nav .Human_Practices span").css("color","#FAEE0D"); },function(){ $(".header .nav .Human_Practices span").css("color","#FAEE0D"); });

});


/*Content_nav*/ $(function(){

var bannerHeight=$(".SSTi-SZGD").outerHeight()-$(window).scrollTop();

if(bannerHeight<=0){ $(".Content_nav").css({"position":"fixed","top":"10px"}); }else{ $(".Content_nav").css({"position":"absolute","top":"auto"}); }

$(window).scroll(function(){

var bannerHeight=$(".SSTi-SZGD").outerHeight()-$(window).scrollTop();

if(bannerHeight<=0){ $(".Content_nav").css({"position":"fixed","top":"10px"}); }else{ $(".Content_nav").css({"position":"absolute","top":"auto"}); }

});

/*锚链接跳转滑动*/ $('.Content_nav ul li a').click(function(){ $('html, body').animate({ scrollTop: $( $.attr(this, 'href') ).offset().top }, 500); return false; });

});



/*轮播*/ $(function(){

//public var scrollLenth=$(".Content .img_total").outerWidth(); $(".Content .img_total .scroll").css("left",-scrollLenth);

//April_29 $("#April_29 .img_total").hover(function(){

clearInterval(April_29_Time); $("#April_29 .img_total .icon_left").css("display","block"); $("#April_29 .img_total .icon_right").css("display","block");

},function(){

$("#April_29 .img_total .icon_left").css("display","none"); $("#April_29 .img_total .icon_right").css("display","none"); April_29_Time=setInterval("April_29_ScrollRight()",3000);

});

$("#April_29 .img_total .icon_left").click(function(){ April_29_ScrollLeft(); });

$("#April_29 .img_total .icon_right").click(function(){ April_29_ScrollRight(); });

//June_22 $("#June_22 .img_total").hover(function(){

clearInterval(June_22_Time); $("#June_22 .img_total .icon_left").css("display","block"); $("#June_22 .img_total .icon_right").css("display","block");

},function(){

$("#June_22 .img_total .icon_left").css("display","none"); $("#June_22 .img_total .icon_right").css("display","none"); June_22_Time=setInterval("June_22_ScrollRight()",3000);

});

$("#June_22 .img_total .icon_left").click(function(){ June_22_ScrollLeft(); });

$("#June_22 .img_total .icon_right").click(function(){ June_22_ScrollRight(); });

//July_11 $("#July_11 .img_total").hover(function(){

clearInterval(July_11_Time); $("#July_11 .img_total .icon_left").css("display","block"); $("#July_11 .img_total .icon_right").css("display","block");

},function(){

$("#July_11 .img_total .icon_left").css("display","none"); $("#July_11 .img_total .icon_right").css("display","none"); July_11_Time=setInterval("July_11_ScrollRight()",3000);

});

$("#July_11 .img_total .icon_left").click(function(){ July_11_ScrollLeft(); });

$("#July_11 .img_total .icon_right").click(function(){ July_11_ScrollRight(); });

//July_26 $("#July_26 .img_total").hover(function(){

clearInterval(July_26_Time); $("#July_26 .img_total .icon_left").css("display","block"); $("#July_26 .img_total .icon_right").css("display","block");

},function(){

$("#July_26 .img_total .icon_left").css("display","none"); $("#July_26 .img_total .icon_right").css("display","none"); July_26_Time=setInterval("July_26_ScrollRight()",3000);

});

$("#July_26 .img_total .icon_left").click(function(){ July_26_ScrollLeft(); });

$("#July_26 .img_total .icon_right").click(function(){ July_26_ScrollRight(); });

//July_29 $("#July_29 .img_total").hover(function(){

clearInterval(July_29_Time); $("#July_29 .img_total .icon_left").css("display","block"); $("#July_29 .img_total .icon_right").css("display","block");

},function(){

$("#July_29 .img_total .icon_left").css("display","none"); $("#July_29 .img_total .icon_right").css("display","none"); July_29_Time=setInterval("July_29_ScrollRight()",3000);

});

$("#July_29 .img_total .icon_left").click(function(){ July_29_ScrollLeft(); });

$("#July_29 .img_total .icon_right").click(function(){ July_29_ScrollRight(); });

});

var April_29_Time=setInterval("April_29_ScrollRight()",3000); var June_22_Time=setInterval("June_22_ScrollRight()",3000); var July_11_Time=setInterval("July_11_ScrollRight()",3000); var July_26_Time=setInterval("July_26_ScrollRight()",3000); var July_29_Time=setInterval("July_29_ScrollRight()",3000);

//April_29 function April_29_ScrollLeft(){

var scrollLenth=$("#April_29 .img_total").outerWidth(); $("#April_29 .img_total .scroll").stop().animate({"left":"0px"},500,function(){ $("#April_29 .img_total .scroll").prepend($("#April_29 .img_total .scroll img:last")); $("#April_29 .img_total .scroll").css({"left":-scrollLenth}); });

}

function April_29_ScrollRight(){

var scrollLenth=$("#April_29 .img_total").outerWidth(); $("#April_29 .img_total .scroll").stop().animate({"left":-scrollLenth*2},500,function(){ $("#April_29 .img_total .scroll").append($("#April_29 .img_total .scroll img:first")); $("#April_29 .img_total .scroll").css({"left":-scrollLenth}); });

}

//June_22 function June_22_ScrollLeft(){

var scrollLenth=$("#June_22 .img_total").outerWidth(); $("#June_22 .img_total .scroll").stop().animate({"left":"0px"},500,function(){ $("#June_22 .img_total .scroll").prepend($("#June_22 .img_total .scroll img:last")); $("#June_22 .img_total .scroll").css({"left":-scrollLenth}); });

}

function June_22_ScrollRight(){

var scrollLenth=$("#June_22 .img_total").outerWidth(); $("#June_22 .img_total .scroll").stop().animate({"left":-scrollLenth*2},500,function(){ $("#June_22 .img_total .scroll").append($("#June_22 .img_total .scroll img:first")); $("#June_22 .img_total .scroll").css({"left":-scrollLenth}); });

}

//July_11 function July_11_ScrollLeft(){

var scrollLenth=$("#July_11 .img_total").outerWidth(); $("#July_11 .img_total .scroll").stop().animate({"left":"0px"},500,function(){ $("#July_11 .img_total .scroll").prepend($("#July_11 .img_total .scroll img:last")); $("#July_11 .img_total .scroll").css({"left":-scrollLenth}); });

}

function July_11_ScrollRight(){

var scrollLenth=$("#July_11 .img_total").outerWidth(); $("#July_11 .img_total .scroll").stop().animate({"left":-scrollLenth*2},500,function(){ $("#July_11 .img_total .scroll").append($("#July_11 .img_total .scroll img:first")); $("#July_11 .img_total .scroll").css({"left":-scrollLenth}); });

}

//July_26 function July_26_ScrollLeft(){

var scrollLenth=$("#July_26 .img_total").outerWidth(); $("#July_26 .img_total .scroll").stop().animate({"left":"0px"},500,function(){ $("#July_26 .img_total .scroll").prepend($("#July_26 .img_total .scroll img:last")); $("#July_26 .img_total .scroll").css({"left":-scrollLenth}); });

}

function July_26_ScrollRight(){

var scrollLenth=$("#July_26 .img_total").outerWidth(); $("#July_26 .img_total .scroll").stop().animate({"left":-scrollLenth*2},500,function(){ $("#July_26 .img_total .scroll").append($("#July_26 .img_total .scroll img:first")); $("#July_26 .img_total .scroll").css({"left":-scrollLenth}); });

}

//July_29 function July_29_ScrollLeft(){

var scrollLenth=$("#July_29 .img_total").outerWidth(); $("#July_29 .img_total .scroll").stop().animate({"left":"0px"},500,function(){ $("#July_29 .img_total .scroll").prepend($("#July_29 .img_total .scroll img:last")); $("#July_29 .img_total .scroll").css({"left":-scrollLenth}); });

}

function July_29_ScrollRight(){

var scrollLenth=$("#July_29 .img_total").outerWidth(); $("#July_29 .img_total .scroll").stop().animate({"left":-scrollLenth*2},500,function(){ $("#July_29 .img_total .scroll").append($("#July_29 .img_total .scroll img:first")); $("#July_29 .img_total .scroll").css({"left":-scrollLenth}); });

}