jQuery + jQuery UI實現菜單左右滑動


  • 利用jQuery+jQuery UI實現了菜單左右滑動(顯示與隱藏)的效果。
  • 代碼引用:
  • Jquery-latest.js
  • jquery.effects.core.js
  • jquery.effects.slide.js
  • jQuery.fn.extend({ 
      slideRightShow
    :function(){ 
       
    returnthis.each(function(){ 
            $
    (this).show('slide',{direction:'right'},1000); 
       
    }); 
     
    }, 
      slideLeftHide
    :function(){ 
       
    returnthis.each(function(){ 
          $
    (this).hide('slide',{direction:'left'},1000); 
       
    }); 
     
    }, 
      slideRightHide
    :function(){ 
       
    returnthis.each(function(){ 
          $
    (this).hide('slide',{direction:'right'},1000); 
       
    }); 
     
    }, 
      slideLeftShow
    :function(){ 
       
    returnthis.each(function(){ 
          $
    (this).show('slide',{direction:'left'},1000); 
       
    }); 
     
    } 
    });
  • 引用地址:
  • 孤舟苦渡:http://www.cnblogs.com/onlylonely/archive/2012/01/03/2311378.html 
  • Stackoverflow:http://stackoverflow.com/questions/521291/jquery-slide-left-and-show


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM