木子屋 Dnawo's BLOG

jQuery实现加载提示loading脚本

👤 dnawo 📅 2014-05-19 👁 4943 👍 0 💬 0 🔄 来源:本站原创
<style type="text/css">
    #loading{position:fixed;_position:absolute;top:50%;left:50%;width:120px;height:120px;overflow:hidden;background:url(images/loading.gif) no-repeat;z-index:10;display:none;}
</style>

<div id="loading"></div>

<script type="text/javascript">
    $(document).ready(function () {
        $("#loading").show();//显示loading
        setTimeout("$('#loading').hide();", 5000);//隐藏loading
    });
</script>

图片图片图片图片图片图片

评论(0)

暂无评论。

计算题
评论需审核通过后显示
← 上一篇 安卓手机通知栏新短信通知清除不了解决方法 下一篇 → ASP.NET MVC3站点设置html或asp文件为网站首页