源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

基于jquery的loading 加载提示效果实现代码

  • 时间:2022-10-01 15:54 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:基于jquery的loading 加载提示效果实现代码
loading 加载提示 ······ 透明遮罩 居中 [img]http://files.jb51.net/upload/201109/20110901210302655.png[/img]    [url=http://www.1sucai.cn/upload/201109/20110901210302297.gif][img]http://files.jb51.net/upload/201109/20110901210302465.gif[/img] [/url]
[u]复制代码[/u] 代码如下:
body{ margin: 0; font-size: 12px; line-height: 100%; font-family: Arial, sans-serif; } .background { display: block; width: 100%; height: 100%; opacity: 0.4; filter: alpha(opacity=40); background:while; position: absolute; top: 0; left: 0; z-index: 2000; } .progressBar { border: solid 2px #86A5AD; background: white url(progressBar_m.gif) no-repeat 10px 10px; } .progressBar { display: block; width: 148px; height: 28px; position: fixed; top: 50%; left: 50%; margin-left: -74px; margin-top: -14px; padding: 10px 10px 10px 50px; text-align: left; line-height: 27px; font-weight: bold; position: absolute; z-index: 2001; } <div id="background" class="background" style="display: none; "></div> <div id="progressBar" class="progressBar" style="display: none; ">数据加载中,请稍等...</div> var ajaxbg = $("#background,#progressBar"); ajaxbg.hide(); $(document).ajaxStart(function () { ajaxbg.show(); }).ajaxStop(function () { ajaxbg.hide(); });
作者:曾祥展
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部