jQuery Growl %title% 介绍
jQuery Growl is a Growl like notification plugin for
jQuery (tested with version 1.2.3).
You can view a demo of it here:
http://projects.zoulcreations.com/jquery/growl/
Or download the uncompressed source here: NOTE : as this project is still
fairly young, it is best to obtain a copy of the latest source from the demo
page.
http://projects.zoulcreations.com/jquery/growl/jquery.growl.js
jQuery Growl is easily ‘skinned’ (themed, templated, whatever you want to call
it) by using the following code Syntax:
$.growl.settings.displayTimeout = 4000;
$.growl.settings.noticeTemplate = ‘’
+ ‘
+ ‘‘
+ ‘
+ ‘
‘
+ ‘
%title%
‘+ ‘
%message%
‘+ ‘
+ ‘‘
+ ‘
$.growl.settings.noticeCss = {
position: ‘relative’
};
UPDATE : (Added in ‘1.0.0-b2’)
or by simply using $.growl.settings.noticeElemet(el), where ‘el’ can either be
a DOM Element or a jQuery Object – the contents (.html()) of ‘el’ are used
… not the container. This allows you to place the ‘template’ in a hidden div
(“display: none”) without requiring $.growl to ‘unhide’ it …
jQuery Growl %title% 官网
http://plugins.jquery.com/project/Growl
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。