
非常實用的jQuery點擊彈出側邊欄提示信息面板特效插件。該側邊欄提示信息插件可以設置信息的類型,位置等參數,但用戶點擊按鈕或超鏈接時,會從設定好的方向滑出提示信息面板,之后會自動隱藏。使用方法要使用這個信息替代插件,首先要在頁面的頭部引入notifyme.css文件<link rel="assets/css/notifyme.css" type="text/css" />然后需要在頁面的頭部引入 jQuery 和 notifyMe.js 文件<script type="text/javascript" src="http://libs.useso.com/js/jquery/1.11.1/jquery.min.js"></script><script src="assets/js/notifyme.js"></script>調用插件的方法非常簡單,以點擊一個按鈕為例,js代碼如下:$('.error').on('click', function(){ $(this).notifyMe( 'bottom', // 位置 'error', // 類型 'Lorem Ipsum Text', // 標題 'Lorem Ipsum is simply dummy text of the printing', // 描述 200 // Velocity of notification 2000 // (optional) Time of delay to close automatically );});