jQuery插件(右下角弹出窗口)

该博客介绍了如何使用jQuery Messager插件创建右下角弹出窗口,提供了源码下载链接,并展示了不同类型的弹窗效果,如固定大小、淡入淡出动画、自定义标题和内容以及设定关闭时间的弹窗。用户可以通过点击按钮来体验这些功能。
摘要由CSDN通过智能技术生成

源码下载

http://download.csdn.net/source/858698

使用方法

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>jquery 插件 plugin 消息插件--亮亮的博客</title>
  6. <script type="text/javascript" src="jquery-1.2.6.pack.js"></script>
  7. <script type="text/javascript" src="jquery.messager.js"></script>
  8. <script type="text/javascript">
  9. $(document).ready(function(){
  10.     $.messager.show(0,'送你一个Jquery Messager消息弹出插件!');
  11.     $("#showMessager300x200").click(function(){
  12.         $.messager.lays(300, 200);
  13.         $.messager.show(0, '300x200的消息',60000);
  14.     });
  15.     $("#showMessagerFadeIn").click(function(){
  16.         $.messager.anim('fade', 2000);
  17.         $.messager.show(0, 'fadeIn动画消息');
  18.     });
  19.     $("#showMessagerShow").click(function(){
  20.         $.messager.anim('show', 1000);
  21.         $.messager.show(0, 'show动画消息');
  22.     });
  23.     $("#showMessagerDim").click(function(){
  24.         $.messager.show('<font color=red>自定义标题</font>', '<font color=green style="font-size:14px;font-weight:bold;">自定义内容</font>');
  25.     });
  26.     $("#showMessagerSec").click(function(){
  27.         $.messager.show(0, '一秒钟关闭消息', 1000);
  28.     });
  29. });
  30. </script>
  31. <style type="text/css">
  32. <!--
  33. body,td,th { font-size: 12px; }
  34. body { background-color: #fefefe; }
  35. p   { width:80%; height:auto; padding:10px; background-color:#D6F097; border:solid 1px #FF9900; color:#333; margin-left:auto; margin-right:auto;}
  36. input   { background-color:#F5D99E; color:#333; border:solid 1px #993300; font-size:12px;}
  37. -->
  38. </style></head>
  39. <body>
  40. <h2>JQUEYR PLUGIN - Messager 作者:赵戈</h2>
  41. <p><input type="button" id="showMessager300x200" value="显示一个300x200的消息" /></p>
  42. <p><input type="button" id="showMessagerFadeIn" value="显示一个fadeIn动画消息" /></p>
  43. <p><input type="button" id="showMessagerShow" value="显示一个show动画消息" /></p>
  44. <p><input type="button" id="showMessagerDim" value="显示定义内容和标题消息" /></p>
  45. <p><input type="button" id="showMessagerSec" value="一秒钟关闭消息" /></p>
  46. <br /><br />
  47. <a href="http://www.94this.com.cn/article/241.htm">代码下载</a>
  48. </body>
  49. </html>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值