jquery等待效果示例
實(shí)現(xiàn)查詢等待:正在查詢中,請(qǐng)稍后...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> 正在查詢,請(qǐng)稍等... </title>
<style type="text/css">
.query_hint{
border:5px solid #939393;
width:250px;
height:50px;
line-height:55px;
padding:0 20px;
position:absolute;
left:50%;
margin-left:-140px;
top:50%;
margin-top:-40px;
font-size:15px;
color:#333;
font-weight:bold;
text-align:center;
background-color:#f9f9f9;
}
.query_hint img{position:relative;top:10px;left:-8px;}
</style>
</head>
<body>
<div id="query_hint" class="query_hint">
<img src="http://static.oschina.net/uploads/space/2014/0430/115223_oFLD_1163935_thumb.gif" />正在查詢,請(qǐng)稍等...
</div>
</body>
</html>
jquery代碼
<div id="query_hint" class="query_hint">
<img src="http://static.oschina.net/uploads/space/2014/0430/115223_oFLD_1163935_thumb.gif" />正在查詢,請(qǐng)稍等...
</div>
<script src="http://www.oschina.net/js/2012/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
//頁面加載完成之后去掉Loading
$(document).ready(function(){
parent.frames[0].queryHintCallback("query_hint");
});
/**
* @description * 顯示查詢等待層
* @param query_hint
*/
function show_query_hint(query_hint){
var query_hint = document.getElementById(query_hint);
query_hint.style.display="block";
}
/**
* @description 查詢結(jié)果回調(diào)函數(shù)
* @param query_hint 要隱藏的提示層id
*/
function queryHintCallback(query_hint){
var query_hint = document.getElementById(query_hint);
query_hint.style.display="none";
}
</script>
相關(guān)文章
jQuery動(dòng)態(tài)添加<input type="file">
有時(shí)候需要在頁面上允許用戶上傳多個(gè)文件,個(gè)數(shù)由用戶自己決定,個(gè)數(shù)多了也可以刪除,使用jQuery可以很簡(jiǎn)單的實(shí)現(xiàn)這個(gè)功能2016-04-04jQuery實(shí)現(xiàn)跟隨鼠標(biāo)運(yùn)動(dòng)圖層效果的方法
這篇文章主要介紹了jQuery實(shí)現(xiàn)跟隨鼠標(biāo)運(yùn)動(dòng)圖層效果的方法,可實(shí)現(xiàn)實(shí)時(shí)顯示鼠標(biāo)坐標(biāo)的圖層跟隨鼠標(biāo)運(yùn)動(dòng)的效果,非常具有實(shí)用價(jià)值,需要的朋友可以參考下2015-02-02jQuery移動(dòng)端日期(datedropper)和時(shí)間(timedropper)選擇器附源碼下載
今天我給大家介紹一款非常有趣的日期和時(shí)間選擇器,它分為日期選擇器datedropper以及時(shí)間選擇器timedropper,他們倆尤其適合在移動(dòng)端上應(yīng)用。感興趣的小伙伴一起學(xué)習(xí)吧2016-04-04Jquery中增加參數(shù)與Json轉(zhuǎn)換代碼
有時(shí)候,我們需要進(jìn)一步轉(zhuǎn)化為json表達(dá)式,參考Ext中的Ext.urlDecode函數(shù),我們可以實(shí)現(xiàn)一個(gè)相應(yīng)的jquery中使用的函數(shù)。2009-11-11基于jQuery實(shí)現(xiàn)左右圖片輪播(原理通用)
這篇文章主要介紹了基于jQuery實(shí)現(xiàn)左右圖片輪播,實(shí)現(xiàn)原理通用可通用,希望能和大家分享一下思路,感興趣的小伙伴們可以參考一下2015-12-12