jquery遮罩效果

1

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>jQuery showLoading example</title>
<link href="css/showLoading.css" rel="stylesheet" media="screen" />
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery.showLoading.js"></script>
<style type="text/css">
a {
	color: blue;
	cursor: pointer;
	text-decoration: underline;
}

div.instructions_container {
	float: left;
	width: 350px;
	margin-right: 50px;
}

div#activity_pane {
	float: left;
	width: 350px;
	height: 200px;
	border: 1px solid #CCCCCC;
	background-color: #EEEEEE;
	padding-top: 200px;
	text-align: center;
}

div.example_links 
         .link_category {
	margin-bottom: 15px;
}

.loading-indicator-bars {
	background-image: url('images/loading-bars.gif');
	width: 150px;
}
</style>
<script type="text/javascript">
	jQuery(document).ready(function() {
		jQuery('a.loading-ajax').click(
			function() {
				/* $('#activity_pane').showLoading({
					'afterShow' : function() {
						setTimeout("jQuery('#activity_pane').hideLoading()", 1000);
					}
				}); */
				$('#activity_pane').showLoading();
			}
		);
	}
	);
</script>

</head>
<body>
	<div class="link_category">
		<div class="link">
			<a class="loading-ajax">simulate 1-second Ajax load</a>
		</div>
	</div>

	<div id="activity_pane">
		Here is where we will load something via ajax. <br /> This container
		<b>must</b> have an id attribute
	</div>
	<div style="clear: both;"></div>
</body>
</html>

很好理解的


下载的插件路径在

http://download.youkuaiyun.com/detail/li53957105/4489460

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

静山晚风

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值