ol.loading是基于jquery的loading mask遮罩控件,轻量,且功能强大。
支持主流浏览器:ie6+,firefox等。
基于MIT和GPL协议下开源。
使用方法:
<script type="text/javascript" src="loading-min.js" charset="UTF-8"></script> <script type="text/javascript" src="jquery.bgiframe.min.js" charset="UTF-8"></script> <link href="loading.css" type="text/css" rel="stylesheet">
调用:
var loading=new ol.loading({id:"table1"});//初始化对象
loading.show();//显示遮罩
loading.hide();//隐藏遮罩
支持属性:
new ol.loading({ id:"table1",//需显示遮罩对象的id loadingClass:null,//外加样式 zIndex:800//z-index });
主页:http://www.open-lib.com/Forum/Read_42_1.action
演示地址:http://open-lib.googlecode.com/svn/trunk/ol.loading_0.1/demo.html