| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252 |
- $(function(){
- var wait_load = $('.im');
- wait_load.css({"opacity":0});
- $(window).on("scroll",function(){
- setTimeout(function(){
- for (var i = 0; i < wait_load.length; i ++) {
- var _this = wait_load.eq(i);
- if (($(window).height() + $(window).scrollTop()) >= _this.offset().top) {
- $(_this).attr('src', $(_this).attr('xsrc')).animate({
- "opacity":1
- });
- }
- }
-
- },100)
- })
- })
- $(function(){
- var len = $(".bd li").length;
- var index = 0;
- var adTimer;
- $(".bd li").mouseover(function(){
- index = $(".banner .bd li").index(this);
- showImg(index);
- }).eq(0).mouseover();
- $('.banner').hover(function(){
- clearInterval(adTimer);
- },function(){
- adTimer = setInterval(function(){
- showImg(index)
- index++;
- if(index==len){index=0;}
- } , 3000);
- }).trigger("mouseleave");
- $(".sv li.next").click(function(){
- index++;
- showImg(index);
- if(index==len){index=0;
- showImg(index);
- }
- });
- $(".sv li.prev").click(function(){
- if(index==0){index=$(".bd li").length;
- showImg(index);
- }
- index--;
- showImg(index);
- })
- })
- function showImg(index){
- var adLeft = $(".banner").height();
- $(".nno").stop(true,false).animate({top : -adLeft*index},1000)
- $(".bd li").removeClass("on")
- .eq(index).addClass("on");
- }
- $(function(){
- var lend = $(".ciu li").length;//获取总长度
- var index2 = 0;//初始化
- var adTimer2;//初始化
- $(".ciu li").mouseover(function(){
- index2 = $(".ciu li").index(this);
- show2Img(index2);
- }).eq(0).mouseover();
- //滑入 停止动画,滑出开始动画.
- $('.biu').hover(function(){
- clearInterval(adTimer2);
- },function(){
- adTimer2 = setInterval(function(){
- show2Img(index2)
- index2++;
- if(index2==lend){index2=0;}
- } , 2000);
- }).trigger("mouseleave");
- })
- function show2Img(index){
- var adHeight = $(".ipc li").width();
- $(".ipc ul").stop(true,false).animate({"left" : -adHeight*index},600);
- $(".ciu li").removeClass("on")
- .eq(index).addClass("on");
- }
- $(function(){
- $(".hdi div").click(function(){
- var ind=$(this).index()
- $(".bdd ul").removeClass("on").eq(ind).addClass("on");
- $(this).addClass("on").siblings().removeClass("on")
- })
- })
- $(function(){
- $(".div_frn_ji ul li").hover(function(){
- var ni=$(this).index();
- $(".uuyz ul").removeClass(".onz").eq(ni).addClass(".onz")
- })
-
- })
- $(function(){
- $(".navqq li").click(function(){
- var nzi=$(this).index()-1;
- $(".mid_08_tz ul").removeClass(".ovu").eq(nzi).addClass(".ovu");
- $(this).addClass("ol").siblings().removeClass("ol")
- })
-
- })
- $(function(){
- var ijn=parseInt($(".cvg span").html());
- var wid=$(".jjea").width();
- var paged = 1;
- $(".hiu").width(ijn*wid);
- $(".nxt").click(function(){
- var hiu=$(".hiu");
- var jjea=$(".jjea");
- var wid=jjea.width();
- if( !hiu.is(":animated") ){
- if( paged == ijn){
- hiu.animate({ left : '0px'}, "slow");
- paged = 1;
- }else{
- hiu.animate({ left : '-='+wid }, "slow");
- paged++;
- }
- }
- })
- $(".prv").click(function(){
- var hiu=$(".hiu");
- var jjea=$(".jjea");
- var wid=jjea.width();
- if( !hiu.is(":animated") ){
- if( paged == 1){
- hiu.animate({ left : '-='+wid*(ijn-1)}, "slow");
- paged = ijn;
- }else{
- hiu.animate({ left : '+='+wid }, "slow");
- paged--;
- }
- }
- })
- })
- $(function(){
- $(".nnqqv li").click(function(){
- $(".iiggv").val($(this).html()+$(".iiggv").val())
- })
- })
- $(function(){
- $(".ivy_ooz li").hover(function(){
- $(this).addClass("oovvz").siblings().removeClass("oovvz");
- })
-
- })
- $(function() {
- var oul = $('.hhyc ul');
- var oulHtml = oul.html();
- oul.html(oulHtml + oulHtml)
- var timeId = null;
- var ali = $('.hhyc ul li');
- var aliWidth = ali.eq(0).height();
- var aliSize = ali.size();
- var ulWidth = aliWidth * aliSize;
- oul.height(ulWidth); //1600px
- var speed = 2;
- function slider() {
- if (speed > 0) {
- if (oul.css('top') == -ulWidth/2+"px") {
- oul.css('top', 0);
- }
- oul.css('top', '-=' + speed + 'px');
- }
- }
- timeId = setInterval(slider, 30);
- $('.hhyc').mouseover(function() {
- clearInterval(timeId);
- });
- $('.hhyc').mouseout(function() {
- timeId = setInterval(slider, 30);
- });
- });
- $(function(){
- var TextNum2;
-
- $(".ckoz,.up").click(function () {
- $(".anoz .up").hide();
- $(".anoz .down").show();
- if(!flag){
- flag=true;
- reset();
- letGo();
- setTimeout(function () {
- flag=false;
- if(index==2){
- $(".anoz .up").show();
- $(".anoz .down").hide();
- setTimeout(redshow,1500)
- function redshow(){
- $(".hhi").show();
- }
-
- }else{
- $(".anoz .up").show();
- $(".anoz .down").hide();
- setTimeout(redshow,1500)
- function redshow(){
- $(".hhi").show();
- }
-
- }
- },3000);
- index++;
- }
- });
- var flag=false;
- var index=0;
- var linum = $(".opz ul li").length/2;
-
- var a=-1140;
- var arr=[];
- for(var i=0;i<linum;i++){
- a-=114;
- arr.push(a)
- }
-
- function letGo(){
- TextNum2=parseInt(Math.random()*linum);
- var num2 = arr[TextNum2];
- $(".opz").animate({"top":-1256},1000,"linear", function () {
- $(this).css("top",0).animate({"top":num2},1800,"linear");
- });
-
- }
-
- function reset(){
- $(".opz").css({"top":-456});
- }
- })
|