<!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>MESSAGER插件</title>
<script src="jquery-1.2.6.pack.js"></script>
<script src="jquery.messager.js"></script>
<script>
$(document).ready(function(){
$.messager.show(0,'送你一个Jquery Messager消息弹出插件!');
$("#showMessager300x200").click(function(){
$.messager.lays(300, 200);
$.messager.show(0, '300x200的消息');
});
$("#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> </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>
</body>
</html>
jquery消息插件
需积分: 9 48 浏览量
2008-12-13
12:58:18
上传
评论
收藏 18KB RAR 举报
therewings
- 粉丝: 0
- 资源: 3
最新资源
- xyctf:从入门到精通的实用指南.zip
- mmqrcode1714153659780.png
- Screenshot_2024-04-27-06-08-58-486_com.baidu.xin.aiqicha.jpg
- 基于Javaweb+Tomcat+MySQL的大学生公寓管理系统+sql文件.zip
- 实训作业基于javaweb的订单管理系统源码+数据库+实训报告.zip
- 多机调度问题贪心算法基于最小堆和贪心算法求解多机调度问题.zip
- 基于同态加密技术的匿名电子投票系统源码.zip
- Pyqt5项目框架-PyQt项目开发实践
- 基于C通过MQTT的智能农业大棚管理系统(本科毕业设计)
- python+CNN的网络入侵检测算法源码.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈