码迷,mamicode.com
首页 > 编程语言 > 详细

jquery javascript写的loading

时间:2014-09-01 19:47:04      阅读:381      评论:0      收藏:0      [点我收藏+]

标签:javascript   document   loading   absolute   position   

bubuko.com,布布扣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

jquery javascript写的loading

标签:javascript   document   loading   absolute   position   

原文地址:http://4247649.blog.51cto.com/4237649/1547521

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!