手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >jQuery实现摸拟alert提示框
jQuery实现摸拟alert提示框
摘要:页面调用JS:$(document).ready(function(){$("#delete_without_layer").click(f...

页面调用JS:

$(document).ready(function() { $("#delete_without_layer").click(function () { $.tConfirm.open({body:'Are you sure to delete?',type:'confirm',onOk:function(){ alert("yes"); }}); }); $("#delete_with_layer").click(function () { $.tConfirm.open({overlay:true,body:'Are you sure to delete?',type:'confirm',onOk:function(){ alert("yes"); }}); }); $("#information").click(function () { $.tConfirm.open({body:'This is confirm box based on fancybox!',type:'info',onOk:function(){ alert("yes"); }}); }); $("#success").click(function () { $.tConfirm.open({body:'Save success!',type:'success',onOk:function(){ alert("yes"); }}); }); $("#error").click(function () { $.tConfirm.open({body:'Some fields are wrong!',type:'error',onOk:function(){ alert("yes"); }}); }); $("#warning").click(function () { $.tConfirm.open({body:'Someone login, it's not real user!',type:'warning',onOk:function(){ alert("yes"); }}); }); });

jQuery实现摸拟alert提示框1

Figure 1. common confirm

jQuery实现摸拟alert提示框2

Figure 2. confirm box with layer

jQuery实现摸拟alert提示框3

Figure 3. error box

jQuery实现摸拟alert提示框4

Figure 4. success box

jQuery实现摸拟alert提示框5

Figure 5. warning box

https://github.com/tomlxq/jquery-confirm

【jQuery实现摸拟alert提示框】相关文章:

jQuery取消ajax请求的方法

jquery实现用户打分评分特效

jquery实现弹出层效果实例

JQuery中上下文选择器实现方法

javascript实现Table排序的方法

jQuery实现dialog设置focus焦点的方法

jQuery实现返回顶部效果的方法

jQuery实现在列表的首行添加数据

jQuery实现将页面上HTML标签换成另外标签的方法

jQuery实现返回顶部功能

精品推荐
分类导航