jQuery实现摸拟alert提示框

前端之家收集整理的这篇文章主要介绍了jQuery实现摸拟alert提示框前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

页面调用JS:

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

源码下载:

猜你在找的jQuery相关文章