欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

jquery等待效果示例

 更新時(shí)間:2014年05月01日 08:46:33   作者:  
這篇文章主要介紹了jquery等待效果示例,需要的朋友可以參考下

實(shí)現(xiàn)查詢等待:正在查詢中,請(qǐng)稍后...

復(fù)制代碼 代碼如下:

<!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代碼

復(fù)制代碼 代碼如下:

<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)文章

最新評(píng)論