一款小巧的jquery.blockUI.js

今天发现一款老外的小巧的jquery.blockUI.js ,比如能做弹出窗口,效果不错,
代码为:


<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>

<script type="text/javascript" src="jquery.blockUI.js">

<input type="button" value="press" id="press" />
<script type="text/javascript">
$(document).ready(function() {
$('#press').click(function() {
$.growlUI(null, 'Sample message');
});
});
</script>


</script>



主要这个插件是用来在ajax请求的时候block ui的,给用户提示,等待等,参考介绍:
The jQuery BlockUI Plugin lets you simulate synchronous behavior when using AJAX, without locking the browser[1]. When activated, it will prevent user activity with the page (or part of the page) until it is deactivated. BlockUI adds elements to the DOM to give it both the appearance and behavior of blocking user interaction.
Usage is very simple; to block user activity for the page:

更多的请参考http://jquery.malsup.com/block/
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值