mining.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. xuetong={
  2. //图片轮换
  3. slide:function(name){
  4. $(name).slide({
  5. titCell: ".hd ul",
  6. mainCell: ".bd ul",
  7. effect: "fade",
  8. autoPlay: true,
  9. autoPage: true,
  10. trigger: "click",
  11. interTime: 5000,
  12. delayTime: 1200,
  13. startFun: function (i) {
  14. var curLi = jQuery(".fullSlide .bd li").eq(i);
  15. if (!!curLi.attr("_src")) {
  16. curLi.css("background-image", curLi.attr("_src")).removeAttr("_src")
  17. }
  18. }
  19. });
  20. },
  21. gwc:function(){
  22. $("#subCrowdNum").click(function (){
  23. var num = $("#crowd_num").val();
  24. num = parseInt(num);
  25. if (isNaN(num)) num = 0;
  26. num --;
  27. num = num < 1 ? 1 : num;
  28. $('.invite_num').text(num);
  29. $("#crowd_num").val(num);
  30. });
  31. $("#addCrowdNum").click(function (){
  32. var num = $("#crowd_num").val();
  33. num = parseInt(num);
  34. if (isNaN(num)) num = 0;
  35. num ++;
  36. $('.invite_num').text(num);
  37. $("#crowd_num").val(num);
  38. });
  39. }
  40. }