jQnotice允许您轻松地显示一个通知顶部的提示动画,你的网站只有一个简单的代码。HTMLClick mejQuery(function($) { $.notice = { show: function(message) { /** Configuration */ var top = 60; var left = 15; var fadeoutDuration = 1000; /** Launch the notification */ $('html, body').animate({scrollTop:0}); $('
').attr('id', 'notice').css('left', (50-left)+'%').css('top', (0+top)+'px').appendTo('body').text(message); /** Switch off the notification */ setTimeout(function() {$('#notice').animate({ opacity: 0, top: '-20px' }, fadeoutDuration);}, 2000); setTimeout(function() {$('#notice').remove();}, 3000); } } jQnotice = function(message) { $.notice.show(message); };})(jQuery);文件目录······
暂无数据
猜你喜欢
更多»
项目推荐
更多»
PDF电子书
更多»
Java多线程编程核心技术
(2)
Linux命令详解词典.pdf
(5)
深入Python3中文版
(0)
百度SEO一本通.pdf
(0)
mysql必知必会.pdf
(2)
疯狂JAVA讲义 pdf电子书
(3)
C# 图解教程pdf电子书
(3)
研磨设计模式 pdf电子书
(0)