jquery等待效果示例
实现查询等待:正在查询中,请稍后...
<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>正在查询,请稍等...</title>
<styletype="text/css">
.query_hint{
border:5pxsolid#939393;
width:250px;
height:50px;
line-height:55px;
padding:020px;
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_hintimg{position:relative;top:10px;left:-8px;}
</style>
</head>
<body>
<divid="query_hint"class="query_hint">
<imgsrc="http://static.oschina.net/uploads/space/2014/0430/115223_oFLD_1163935_thumb.gif"/>正在查询,请稍等...
</div>
</body>
</html>
jquery代码
<divid="query_hint"class="query_hint">
<imgsrc="http://static.oschina.net/uploads/space/2014/0430/115223_oFLD_1163935_thumb.gif"/>正在查询,请稍等...
</div>
<scriptsrc="http://www.oschina.net/js/2012/jquery-1.7.1.min.js"></script>
<scripttype="text/javascript">
//页面加载完成之后去掉Loading
$(document).ready(function(){
parent.frames[0].queryHintCallback("query_hint");
});
/**
*@description *显示查询等待层
*@paramquery_hint
*/
functionshow_query_hint(query_hint){
varquery_hint=document.getElementById(query_hint);
query_hint.style.display="block";
}
/**
*@description查询结果回调函数
*@paramquery_hint要隐藏的提示层id
*/
functionqueryHintCallback(query_hint){
varquery_hint=document.getElementById(query_hint);
query_hint.style.display="none";
}
</script>
相关文章
- 自动加载jQuery的Javascript代码示例
- Jquery常用方法详解编程语言
- JQuery中操作Css样式的方法大全详解编程语言
- JQuery入门——用映射方式绑定不同事件应用示例
- Jquery实现页面加载时弹出对话框代码
- JQuery实现表格中相同单元格合并示例代码
- JQUERY实现左侧TIPS滑进滑出效果示例
- jquery触发a标签跳转事件示例代码
- jquery实现div阴影效果示例代码
- jquery右下角弹出提示框示例代码
- jquery统计复选框选中示例
- jQuery的each终止或跳过示例代码
- JS,Jquery获取select,dropdownlist,checkbox下拉列表框的值(示例代码)
- jquery教程限制文本框只能输入数字和小数点示例分享
- Jquery获取元素的父容器对象示例代码
- Jquery在指定DIV加载HTML示例代码
- JQuery与JS里submit()的区别示例介绍
- jQuery回车事件enter使用示例
- jquery制作搜狐快站页面效果示例分享
- jquery数组封装使用方法分享(jquery数组遍历)
- jquery选择符快速提取web表单数据示例
- Jquery操作js数组及对象示例代码
- jQuery+PHP打造滑动开关效果
- jquery文档操作wrap()方法实例简述
- jquery中each遍历对象和数组示例
- JQuery中的html()、text()、val()区别示例介绍