data.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. var i=1;
  2. function ba_rt(){
  3. var left= $("#tupian").css("left");
  4. left=parseInt(left)-443;
  5. var img= $("#tupian img");
  6. if (i < img.length-1){
  7. i++;
  8. $("#tupian").css("left", left+"px");
  9. }
  10. }
  11. function ba_lt(){
  12. var left= $("#tupian").css("left");
  13. left=parseInt(left)+443;
  14. if (i>1){
  15. i--;
  16. $("#tupian").css("left", left+"px");
  17. }
  18. }
  19. $(function(){
  20. //�õ�Ƭ
  21. $(".tabs").tabs(".images > .a", {
  22. effect: 'horizontal',//slide
  23. fadeInSpeed: 700,
  24. fadeOutSpeed: 700,
  25. rotate: true,
  26. autoplay : true,
  27. interval:7000
  28. }).slideshow();
  29. $(".tabs").data('slideshow').play();
  30. //�ӳټ���
  31. var $container = $('#listBox');
  32. $(".scrollLoading").scrollLoading({
  33. callback: function() {
  34. $container.imagesLoaded(function(){
  35. $container.masonry('reload');
  36. });
  37. }
  38. });
  39. $(".firend_blogroll").mouseover(function(){
  40. $(".friend_title a").removeClass('friend_default');
  41. $(this).addClass("friend_default");
  42. $(".fFlist").show();
  43. $(".fNewlist,.fSeach").hide();
  44. });
  45. $(".firend_newlist").mouseover(function(){
  46. $(".friend_title a").removeClass('friend_default');
  47. $(this).addClass("friend_default");
  48. $(".fNewlist").show();
  49. $(".fFlist,.fSeach").hide();
  50. });
  51. $(".firend_seach").mouseover(function(){
  52. $(".friend_title a").removeClass('friend_default');
  53. $(this).addClass("friend_default");
  54. $(".fSeach").show();
  55. $(".fNewlist,.fFlist").hide();
  56. });
  57. $(".rank_yuanchuang").mouseover(function(){
  58. $(".index_rank_title a").removeClass("rank_defult") ;
  59. $(this).addClass("rank_defult");
  60. $(".yc_rank").show();
  61. $(".sc_rank").hide();
  62. })
  63. $(".rank_shangchuan").mouseover(function(){
  64. $(".index_rank_title a").removeClass("rank_defult") ;
  65. $(this).addClass("rank_defult");
  66. $(".sc_rank").show();
  67. $(".yc_rank").hide();
  68. })
  69. $(".flow-box").mouseover(function(){
  70. $(this).css({'-moz-box-shadow':'0px 0px 2px #ddd','-webkit-box-shadow':'0px 0px 2px #ddd','box-shadow':'0px 0px 2px #ddd'});
  71. }).mouseout(function(){
  72. $(this).css({'-moz-box-shadow':'0px 0px 2px #f4f4f4','-webkit-box-shadow':'0px 0px 2px #f4f4f4','box-shadow':'0px 0px 2px #f4f4f4'});
  73. });
  74. $(".vipgaosu").click(function(){
  75. $.getJSON("http://www.58pic.com/test.php?m=index&a=vipcount", function(ret) {});
  76. })
  77. //����
  78. $(".index_rank_content,.newest-block").mouseover(function(){
  79. $(this).css({"background":"#f6f6f6"});
  80. }).mouseout(function(){
  81. $(this).css({"background":"#fff"});
  82. })
  83. $(".index_rank_right").click(function(){
  84. var url = $(this).attr('data');
  85. window.open(url,"_blank");
  86. })
  87. $(".newest-right").click(function(){
  88. var url = $(this).attr('data');
  89. window.open(url,"_blank");
  90. })
  91. });