控制台应用,yzncms本身基于tp5.1框架,里面的队列用不了,bug,坑
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. $(function() {
  2. $(".search-box .butn").on('click', function() {
  3. if ($(this).hasClass('hov')) {
  4. $(this).removeClass('hov');
  5. $(this).siblings('.share-sub').stop().animate({
  6. width: 288
  7. }, 500);
  8. } else {
  9. $(this).addClass('hov');
  10. $(this).siblings('.share-sub').stop().animate({
  11. width: 0
  12. }, 500);
  13. }
  14. });
  15. $('.case_list').on('mouseenter','li',function(){
  16. $(this).addClass('hover');
  17. }).on('mouseleave','li',function(){
  18. $(this).removeClass('hover');
  19. });
  20. })
  21. jQuery(".main_case").slide({titCell:".hd ul",mainCell:".case_list ul",autoPage:true,effect:"left",autoPlay:true,vis:3});
  22. /* 控制左右按钮显示 */
  23. jQuery(".fullSlide").hover(function() { jQuery(this).find(".prev,.next").stop(true, true).fadeTo("show", 0.5) }, function() { jQuery(this).find(".prev,.next").fadeOut() });
  24. /* 调用SuperSlide */
  25. jQuery(".fullSlide").slide({
  26. titCell: ".hd ul",
  27. mainCell: ".bd ul",
  28. effect: "fold",
  29. autoPlay: true,
  30. autoPage: true,
  31. trigger: "click",
  32. startFun: function(i) {
  33. var curLi = jQuery(".fullSlide .bd li").eq(i); /* 当前大图的li */
  34. if (!!curLi.attr("_src")) {
  35. curLi.css("background-image", curLi.attr("_src")).removeAttr("_src") /* 将_src地址赋予li背景,然后删除_src */
  36. }
  37. }
  38. });