写了个简单的摸拟alert\提示框,有需要可以拿去用.

阅读: 评论:0

写了个简单的摸拟alert提示框,有需要可以拿去用.

写了个简单的摸拟alert提示框,有需要可以拿去用.

写了个简单的摸拟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小时内删除。

标签:写了   拿去   提示   简单   alert
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23