标签:javascript document loading absolute position
var mask="<div id=‘m‘></div>";
var loading="<div id=‘loadingDiv‘ style=‘‘><img src=‘../../theme/blue/images/blue/loading-blue.gif‘></img>主备切换中.......</div>";
$("body").prepend(loading).prepend(mask);
$("#loadingDiv").css("position","absolute").css("width","221px").css("height","51px").css("background-color","#fff").css("text-align","left").css("z-index","9999").css("top","201px").css("left","471px");
$("#m").width($(document).width()).height($(document).height()).css("background-color","#ece9d8").css("filter","alpha(opacity=60)").css("-moz-opacity","0.4").css("position","absolute").css("z-index","10");
本文出自 “技术之门” 博客,请务必保留此出处http://4247649.blog.51cto.com/4237649/1547521
标签:javascript document loading absolute position
原文地址:http://4247649.blog.51cto.com/4237649/1547521