global.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. function waveloop1(){
  2. $("#banner_bolang_bg_1").css({"left":"-236px"}).animate({"left":"-1233px"},25000,'linear',waveloop1);
  3. }
  4. function waveloop2(){
  5. $("#banner_bolang_bg_2").css({"left":"-25px"}).animate({"left":"-1009px"},60000,'linear',waveloop2);
  6. }
  7. waveloop1();
  8. waveloop2();
  9. function autoFlashHeight(){
  10. var header = $(".header").height();
  11. $(".autoHeightL1").height($(window).height()-header-25);
  12. $(".autoHeightL2").height($(window).height()-header-231);
  13. $(".autoHeightL3").height($(window).height()-header-125);
  14. $(".autoHeightL4").height($(window).height()-header-114);
  15. // console.log($(window).height());
  16. console.log($(document).height());
  17. };
  18. $(window).resize(autoFlashHeight);
  19. $(document).ready(function(){
  20. $('.open-left').click(function(){//点击a标签
  21. if($('.left-media-body').is(':hidden')){//如果当前隐藏
  22. $(".software-left").animate({width:"27%"},500);
  23. $(".local-install").animate({left:"27%",width:"73%"},500);
  24. $(".left-media-body").fadeIn(1000);
  25. $(".software-left-bottomV1").show();
  26. $(".software-left-bottomV2").hide();
  27. }else{//否则
  28. $(".software-left").animate({width:"7%"},500);
  29. $(".local-install").animate({left:"7%",width:"93%"},500);
  30. $(".left-media-body").fadeOut(100);
  31. $(".software-left-bottomV1").hide();
  32. $(".software-left-bottomV2").show();
  33. }
  34. })
  35. });