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