jQuery Growl Plugin (Notifications)
The jQuery Growl plugin (notifications) makes it easy to display feedback messages in an overlay. The messages disappear automatically after a period of time, with no need to click an "OK" button or similar. Users can also speed up hiding the messages by moving the mouse or clicking the close button.
The current version of this plugin is 1.0.0.
Access the jQuery Growl Official site, download jQuery Growl plugin.
The effect is as follows:

Usage
After downloading the plugin, import the three files: the jQuery library, jquery.growl.js, and jquery.growl.css, as follows:
<script src="https://cdn.bootcss.com/jquery/2.0.2/jquery.min.js" type="text/javascript" script>
<script src="https://static.jyshare.com/assets/jquery/jquery.growl/javascripts/jquery.growl.js" type="text/javascript" script>
<link href="https://static.jyshare.com/assets/jquery/jquery.growl/stylesheets/jquery.growl.css" rel="stylesheet" type="text/css" />To use the Growl plugin, select the element whose text you want to set and pass the text to it as a parameter:
$.
growl
(
{
title
:
"
Message Title
"
,
message
:
"
Message Content!
"
}
)
; $.
growl
.
error
(
{
title
:
"
Error Title
"
,
message
:
"
Error Message Content!
"
}
)
; $.
growl
.
notice
(
{
title
:
"
Reminder Title
"
,
message
:
"
Reminder Message Content!
"
}
)
; $.
growl
.
warning
(
{
title
:
"
Warning Title
"
,
message
:
"
Warning Message Content!
"
}
)
;
Several default options are available. If you are interested, you can view the full example demonstration below.
Example Demonstration
jQuery Message plugin demonstration.
$
(
function
(
)
{
$.
growl
(
{
title
:
"
Message Title
"
,
message
:
"
Message Content!
"
}
)
; $
(
'
.error
'
)
.
click
(
function
(
event
)
{
event
.
preventDefault
(
)
;
event
.
stopPropagation
(
)
;
return
$.
growl
.
error
(
{
title
:
"
Error Title
"
,
message
:
"
Error Message Content!
"
}
)
;
}
)
; $
(
'
.notice
'
)
.
click
(
function
(
event
)
{
event
.
preventDefault
(
)
;
event
.
stopPropagation
(
)
;
return
$.
growl
.
notice
(
{
title
:
"
Reminder Title
"
,
message
:
"
Reminder Message Content!
"
}
)
;
}
)
;
return
$
(
'
.warning
'
)
.
click
(
function
(
event
)
{
event
.
preventDefault
(
)
;
event
.
stopPropagation
(
)
;
return
$.
growl
.
warning
(
{
title
:
"
Warning Title
"
,
message
:
"
Warning Message Content!
"
}
)
;
}
)
;
}
)
;
Try it »