jquery实现进度条无百分比动画loading页面加载特效
2014-09-11 17:08
676 查看
效果
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jquery浮动层loading页面加载特效</title>
<meta name="description" content="jquery浮动层特效或弹出层特效loading页面加载过程,异步加载loading特效。提示用户loading页面加载效果。jQuery下载。" />
</head>
<body>
<style type="text/css">
a,img{border:0;}
.demo{margin:100px auto 0 auto;width:400px;text-align:center;font-size:18px;}
.demo .action{color:#3366cc;text-decoration:none;font-family:"微软雅黑","宋体";}
.overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:998;width:100%;height:100%;_padding:0 20px 0 0;background:#f6f4f5;display:none;}
.showbox{position:fixed;top:0;left:50%;z-index:9999;opacity:0;filter:alpha(opacity=0);margin-left:-80px;}
.showbox,.overlay{position:absolute;top:expression(eval(document.documentElement.scrollTop));}
#AjaxLoading{border:1px solid #8CBEDA;color:#37a;font-size:12px;font-weight:bold;}
#AjaxLoading div.loadingWord{width:180px;height:50px;line-height:50px;border:2px solid #D6E7F2;background:#fff;}
#AjaxLoading img{margin:10px 15px;float:left;display:inline;}
</style>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var h = $(document).height();
$(".overlay").css({"height": h });
$(".action").click(function(){
$(".overlay").css({'display':'block','opacity':'0.8'});
$(".showbox").stop(true).animate({'margin-top':'300px','opacity':'1'},200);
// setTimeout(function(){
// $(".showbox").stop(true).animate({'margin-top':'250px','opacity':'0'},400);
// $(".overlay").css({'display':'none','opacity':'0'});
// },800);
});
});
</script>
<div class="demo"><a class="action" href="javascript:void(0);">jquery float浮动层弹出层页面加载特效</a></div>
<div class="overlay"></div>
<div id="AjaxLoading" class="showbox">
<div class="loadingWord"><img src="waiting.gif">加载中,请稍候...</div>
</div>
</body>
</html>
还需要加载jquery的min.js文件和一张gif的图,jquery.min.js这个就不放了,网上一搜一大把
gif的图扔上来
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jquery浮动层loading页面加载特效</title>
<meta name="description" content="jquery浮动层特效或弹出层特效loading页面加载过程,异步加载loading特效。提示用户loading页面加载效果。jQuery下载。" />
</head>
<body>
<style type="text/css">
a,img{border:0;}
.demo{margin:100px auto 0 auto;width:400px;text-align:center;font-size:18px;}
.demo .action{color:#3366cc;text-decoration:none;font-family:"微软雅黑","宋体";}
.overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:998;width:100%;height:100%;_padding:0 20px 0 0;background:#f6f4f5;display:none;}
.showbox{position:fixed;top:0;left:50%;z-index:9999;opacity:0;filter:alpha(opacity=0);margin-left:-80px;}
.showbox,.overlay{position:absolute;top:expression(eval(document.documentElement.scrollTop));}
#AjaxLoading{border:1px solid #8CBEDA;color:#37a;font-size:12px;font-weight:bold;}
#AjaxLoading div.loadingWord{width:180px;height:50px;line-height:50px;border:2px solid #D6E7F2;background:#fff;}
#AjaxLoading img{margin:10px 15px;float:left;display:inline;}
</style>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var h = $(document).height();
$(".overlay").css({"height": h });
$(".action").click(function(){
$(".overlay").css({'display':'block','opacity':'0.8'});
$(".showbox").stop(true).animate({'margin-top':'300px','opacity':'1'},200);
// setTimeout(function(){
// $(".showbox").stop(true).animate({'margin-top':'250px','opacity':'0'},400);
// $(".overlay").css({'display':'none','opacity':'0'});
// },800);
});
});
</script>
<div class="demo"><a class="action" href="javascript:void(0);">jquery float浮动层弹出层页面加载特效</a></div>
<div class="overlay"></div>
<div id="AjaxLoading" class="showbox">
<div class="loadingWord"><img src="waiting.gif">加载中,请稍候...</div>
</div>
</body>
</html>
还需要加载jquery的min.js文件和一张gif的图,jquery.min.js这个就不放了,网上一搜一大把
gif的图扔上来
相关文章推荐
- Cocos2d-x 实现Loading界面加载资源进度条显示百分比(回调函数)
- 基于javascript实现页面加载loading动画
- jQuery实现彩带延伸效果的网页加载条loading动画
- CSS3实现Loading加载动画特效大全
- Javascript,Jquery实现页面图片预加载百分比展现
- 用jQuery模拟页面加载进度条的实现代码
- 一款由jquery实现的超炫的页面加载特效
- load-awesome 53种纯CSS3预加载页面loading指示器动画特效
- 采用jquery easyui loading css效果实现加载时的页面覆盖功能
- jQuery实现彩带延伸效果的网页加载条loading动画
- 10个CSS和jQuery的加载中(loading)动画效果实现
- JQuery、AJAX加载数据时候的loading加载动画实现步骤
- 30种CSS3炫酷页面预加载loading动画特效
- Javascript,Jquery实现页面图片预加载百分比展现
- JS+AS实现真正页面加载图片进度条(带百分比)
- 一款由jquery实现的超炫的页面加载特效
- 用jQuery模拟页面加载进度条的实现代码
- 基于jquery的loading 加载提示效果实现代码
- 构建canvas动画框架(三)——canvas图片预加载及进度条的实现
- HTML页面加载和请求发送时LOADING动画