Navjq.js 734 B

1234567891011121314151617181920212223242526272829
  1. $(document).click(function(){
  2. $('.nav-list').removeClass('open')
  3. })
  4. $('.nav-menu,.nav-list').click(function(e){e.stopPropagation()})
  5. $('nav').find('.nav-menu').click(function(e){
  6. $('.nav-list').toggleClass('open')
  7. })
  8. $(".fullSlide").hover(function(){
  9. $(this).find(".prev,.next").stop(true, true).fadeTo("show", 0.5)
  10. },
  11. function(){
  12. $(this).find(".prev,.next").fadeOut()
  13. });
  14. $(".fullSlide").slide({
  15. titCell: ".hd ul",
  16. mainCell: ".bd ul",
  17. effect: "fold",
  18. autoPlay: true,
  19. autoPage: true,
  20. trigger: "click",
  21. startFun: function(i) {
  22. var curLi = jQuery(".fullSlide .bd li").eq(i);
  23. if ( !! curLi.attr("_src")) {
  24. curLi.css("background-image", curLi.attr("_src")).removeAttr("_src")
  25. }
  26. }
  27. });