jQuery Message


jQuery Message

The jQuery Message plugin allows you to easily display feedback messages in an overlay. The message will automatically disappear after a while, no need to click the "OK" button, etc. Users can quickly hide information by moving the mouse or clicking anywhere.

The current version of this plug-in is 1.0.0.

Visit the jQuery Message official website and download the jQuery Message plug-in.


How to use

If you need to use the Message plug-in, please select the element where you want to display text and pass the text to it as a parameter:

$(function() { $().message("Hello world!"); // or ## $(".feedback"). message();});
There are several default options available. If you are interested, you can view the complete example demonstration below.

Example demonstration

jQuery Message plug-in demonstration.

Instance

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>jQuery Message 插件</title>

<link rel="stylesheet" type="text/css" media="screen" href="http://jquery.bassistance.de/message/jquery.message.css" />

<script src="http://jquery.bassistance.de/message/lib/jquery-1.3.2.js" type="text/javascript"></script>
<script src="http://jquery.bassistance.de/message/jquery.message.js" type="text/javascript"></script>

<script type="text/javascript">
$(function() {
	$().message("Hello world, on document ready!");
	$("#demo").submit(function(e) {
		e.preventDefault();
		$().message($("#message").val());
	})
});
</script>

<style type="text/css">

</style>

</head>
<body>

<h1 id="banner">jQuery Message 插件演示</h1>
<div id="main">
	
	<form id="demo">
		<input name="message" id="message" />
		<input type="submit" value="显示消息" />
	</form>
	
</div>

</body>
</html>

Run Instance»Click the "Run Instance" button to view the online instance