Jquery plug-in user-friendly Message Display

Source: Internet
Author: User

This plug-in is based on JQ and passed the test in IE6, 7, ff1.5 and opera9.
Features:
1. Excellent compatibility
2. Overwrite select
3. It is very convenient to use. If you want to display some HTML in it, the previous method is to splice HTML into a string (JS), but now you can edit it visually.
4. covers basic common functions
5. The rush. If you have any questions, please submit them.
Simple usage:

$ ('# MSG'). showmsg ({automiddle: true })
// The element whose ID is MSG is displayed in the center and disappears automatically after 2 seconds

$ ('# MSG'). showmsg ({automiddle: True, time: 5000 })
// The element whose ID is MSG is displayed in the center and disappears automatically after 5 seconds

$ ('# MSG'). showmsg ({MSG: 'haha, okay ', left: 0, top: 0, time: 5000, callback: _ alert })
// The element with the id msg is displayed in the upper left corner, and disappears automatically after 5 seconds. The callback function is triggered when the elements disappear.

$ ("# dommessage "). showmsg ({automiddle: True, coverbody: True, autoclose: false, left: 200, top: 300});
// The elements whose ID is dommessage are displayed in the center, overwrite the screen (not automatically closed)
related parameter descriptions are as follows:
Ctrl + mouse wheel to zoom in/out "src =" http://omeweb.com/photo/temp/msg/params.jpg "width =" 716 "onLoad =" If (this. width> screen. width * 0.7) {This. resized = true; this. width = screen. width * 0.7; this. alt = 'click here to open new window \ nctrl + mouse wheel to zoom in/out ';} "Border =" 0 "resized =" true ">
online http://img.jb51.net/online/jq_msg/index.html demo

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.