加载效果

<div id="loading" style="position:absolute;z-index:1000;top:0px;left:0px;width:100%;height:100%;background:#FFFFFF;text-align :center;padding-top:1%;">
     <img src="../resources/****/images/loading.jpg" width="50%">
</div> 

 

<!--定时器-->
<
script> var pc; //不要放在$(function(){});中 $.parser.onComplete = function () { if (pc) clearTimeout(pc); pc = setTimeout(closes, 1000); } function closes() { $('#loading').fadeOut('normal', function () { $(this).remove(); }); } </script>
<!--

fadeOut(speed, [callback])

概述

通过不透明度的变化来实现所有匹配元素的淡出效果,并在动画完成后可选地触发一个回调函数。

这个动画只调整元素的不透明度,也就是说所有匹配的元素的高度和宽度不会发生变化。

参数

speedString,Number

三种预定速度之一的字符串("slow", "normal", or "fast")或表示动画时长的毫秒数值(如:1000)

callback (可选)Function

在动画完成时执行的函数

-->

 

posted @ 2020-04-14 15:45  lalalalatxx  阅读(107)  评论(0编辑  收藏  举报