最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Jquery 弹出内容提示插件
时间:2013-05-18 编辑:简简单单 来源:一聚教程网
代码如下 | 复制代码 |
$(function() { var $this = $(this); var $tip_container = $("#tip_container"+bid) var $tip = $("#tip"+bid); var $tipSpan = $("#tsc"+bid); var $colse = $("#mclose"+bid); //先清楚定时器 clearTimeout(window.timer); //主体元素绑定事件 $this.die().live(options.Event,function(){ $tip.attr("class", options.type).addClass("mtip"); $tipSpan.html(options.msg); $tip_container.slideDown(options.speed); //提示层隐藏定时器 window.timer = setTimeout(function (){ $tip_container.slideUp(options.speed); }, options.timeOut); }); $(function (){ }); }); }); }); |
相关文章
- jQuery实现单击按钮遮罩弹出对话框效果(1) 04-20
- jQuery实现单击按钮遮罩弹出对话框效果(2) 04-20
- jQuery点击弹出层弹出模态框点击模态框消失代码分享 02-13
- jQuery弹出层插件hwLayer使用方法详解 05-21
- jquery实现点击弹出带标题栏的弹出层效果代码 09-24
- jquery弹出对话框背景遮罩例子 09-02