源码下载
http://download.csdn.net/source/858698
使用方法
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>jquery 插件 plugin 消息插件--亮亮的博客</title>
- <script type="text/javascript" src="jquery-1.2.6.pack.js"></script>
- <script type="text/javascript" src="jquery.messager.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- $.messager.show(0,'送你一个Jquery Messager消息弹出插件!');
- $("#showMessager300x200").click(function(){
- $.messager.lays(300, 200);
- $.messager.show(0, '300x200的消息',60000);
- });
- $("#showMessagerFadeIn").click(function(){
- $.messager.anim('fade', 2000);
- $.messager.show(0, 'fadeIn动画消息');
- });
- $("#showMessagerShow").click(function(){
- $.messager.anim('show', 1000);
- $.messager.show(0, 'show动画消息');
- });
- $("#showMessagerDim").click(function(){
- $.messager.show('<font color=red>自定义标题</font>', '<font color=green style="font-size:14px;font-weight:bold;">自定义内容</font>');
- });
- $("#showMessagerSec").click(function(){
- $.messager.show(0, '一秒钟关闭消息', 1000);
- });
- });
- </script>
- <style type="text/css">
- <!--
- body,td,th { font-size: 12px; }
- body { background-color: #fefefe; }
- p { width:80%; height:auto; padding:10px; background-color:#D6F097; border:solid 1px #FF9900; color:#333; margin-left:auto; margin-right:auto;}
- input { background-color:#F5D99E; color:#333; border:solid 1px #993300; font-size:12px;}
- -->
- </style></head>
- <body>
- <h2>JQUEYR PLUGIN - Messager 作者:赵戈</h2>
- <p><input type="button" id="showMessager300x200" value="显示一个300x200的消息" /></p>
- <p><input type="button" id="showMessagerFadeIn" value="显示一个fadeIn动画消息" /></p>
- <p><input type="button" id="showMessagerShow" value="显示一个show动画消息" /></p>
- <p><input type="button" id="showMessagerDim" value="显示定义内容和标题消息" /></p>
- <p><input type="button" id="showMessagerSec" value="一秒钟关闭消息" /></p>
- <br /><br />
- <a href="http://www.94this.com.cn/article/241.htm">代码下载</a>
- </body>
- </html>
该博客介绍了如何使用jQuery Messager插件创建右下角弹出窗口,提供了源码下载链接,并展示了不同类型的弹窗效果,如固定大小、淡入淡出动画、自定义标题和内容以及设定关闭时间的弹窗。用户可以通过点击按钮来体验这些功能。
140

被折叠的 条评论
为什么被折叠?



