jQuery Growl -


未知
未知

软件简介

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 …