写了个简单的摸拟alert提示框,欢迎大家使用.
源码下载:
效果图:
This is a demonstration. include fancybox css/js, please take care!
Example:
$(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");}});});});
Figure 1. common confirm Figure 2. confirm box with layer Figure 3. error box Figure 4. success box Figure 5. warning box
本文发布于:2024-02-01 19:45:41,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170678793839020.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |