JQuery Growl Message Reminder Plugin

Source: Internet
Author: User
Tags jquery library

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.