123456789101112131415161718192021222324252627282930313233343536373839 |
- function waveloop1(){
- $("#banner_bolang_bg_1").css({"left":"-236px"}).animate({"left":"-1233px"},25000,'linear',waveloop1);
- }
- function waveloop2(){
- $("#banner_bolang_bg_2").css({"left":"-25px"}).animate({"left":"-1009px"},60000,'linear',waveloop2);
- }
- waveloop1();
- waveloop2();
- function autoFlashHeight(){
- var header = $(".header").height();
- $(".autoHeightL1").height($(window).height()-header-25);
- $(".autoHeightL2").height($(window).height()-header-231);
- $(".autoHeightL3").height($(window).height()-header-125);
- $(".autoHeightL4").height($(window).height()-header-114);
- // console.log($(window).height());
- console.log($(document).height());
- };
- $(window).resize(autoFlashHeight);
- $(document).ready(function(){
- $('.open-left').click(function(){//点击a标签
- if($('.left-media-body').is(':hidden')){//如果当前隐藏
- $(".software-left").animate({width:"27%"},500);
- $(".local-install").animate({left:"27%",width:"73%"},500);
- $(".left-media-body").fadeIn(1000);
- $(".software-left-bottomV1").show();
- $(".software-left-bottomV2").hide();
- }else{//否则
- $(".software-left").animate({width:"7%"},500);
- $(".local-install").animate({left:"7%",width:"93%"},500);
- $(".left-media-body").fadeOut(100);
- $(".software-left-bottomV1").hide();
- $(".software-left-bottomV2").show();
- }
- })
- });
|