The JQuery growl plugin (message reminder) allows you to easily display feedback messages in one overlay. Messages will automatically disappear after a certain period of time, no need to click on the "OK" button. Users can also quickly hide information by moving the mouse or clicking the Close button.
The current version of the plugin is 1.0.0.
Visit the jquery Growl website and download the jquery growl plugin. The effect is as follows:
How to use
Download the plugin and pour into the JQuery library, jquery.growl.js,jquery.growl.css three files, such as: < script src = "https://cdn.bootcss.com/jquery//2.0.2/ Jquery.min.js "type =" Text/javascript "> </script > < script src =" https://static.runoob.com/assets/jqu Ery/jquery.growl/javascripts/jquery.growl.js "type =" Text/javascript "> </script > < Link href =" https: Static.runoob.com/assets/jquery/jquery.growl/stylesheets/jquery.growl.css "rel =" stylesheet "type =" Text/css "/&G T
To use the Growl plugin, select the display text element you want to set, and pass the text as an argument to it: $. Growl ({title: "Message title", Message: "Messages content!"}); $. Growl. Error ({title: "Wrong title", Message: "Error message content!"}); $. Growl. Notice ({title: "Reminder title", Message: "Reminder message content!"}); $. Growl. Warning ({title: "Warning Header", Message: "Warning message content!"});
There are several default options available. If you are interested, you can view the complete example demo below. Example Demo
JQuery Message Plugin Demo. $ (function () {$. Growl ({title: "Message title", "message:" Messages 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: