<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>右下角弹出框</title>
<style type="text/css">
#rbbox{position:absolute;left:0;bottom:0;width:300px;height:0px;overflow:hidden}
.button{display:inline;float:left;font-size:12px;cursor:pointer}
</style>
<script language="javascript" type="text/javascript">
function showBox(o){
if (o==undefined) o=document.getElementById("rbbox");
o.style.height=o.clientHeight+2+"px";
if (o.clientHeight<200) setTimeout(function(){showBox(o)},5);
}
function closeBox(){document.getElementById("rbbox").style.display="none";}
</script>
</head>
<body>
<input type="button" value="点击" onClick="showBox()">
<div id="rbbox">
<a class="button" onclick="closeBox()">关闭</a>
<iframe src="bb.html" frameborder="0" height="200" width="300" scrolling="no"></iframe>
</div>
</body>
</html>
我想实现的是点击一个按钮,从左下角弹出一个搜索框,现在用iframe做好了,可是现在有以下几个问题:
我搜索完后会有返回结果,返回结果我要在搜索框这个页面显示,然后当我关闭这个搜索框的时候,我再点还要弹出这个搜索框,可是现在的问题是必须刷新以后才能弹出,且弹出的时候是显示的结果,并没有再显示为搜索框,这个该怎么改啊??
有知道的告诉下 ,谢谢了
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>右下角弹出框</title>
<style type="text/css">
#rbbox{position:absolute;left:0;bottom:0;width:300px;height:0px;overflow:hidden}
.button{display:inline;float:left;font-size:12px;cursor:pointer}
</style>
<script language="javascript" type="text/javascript">
function showBox(o){
if (o==undefined) o=document.getElementById("rbbox");
o.style.height=o.clientHeight+2+"px";
if (o.clientHeight<200) setTimeout(function(){showBox(o)},5);
}
function closeBox(){document.getElementById("rbbox").style.display="none";}
</script>
</head>
<body>
<input type="button" value="点击" onClick="showBox()">
<div id="rbbox">
<a class="button" onclick="closeBox()">关闭</a>
<iframe src="bb.html" frameborder="0" height="200" width="300" scrolling="no"></iframe>
</div>
</body>
</html>
我想实现的是点击一个按钮,从左下角弹出一个搜索框,现在用iframe做好了,可是现在有以下几个问题:
我搜索完后会有返回结果,返回结果我要在搜索框这个页面显示,然后当我关闭这个搜索框的时候,我再点还要弹出这个搜索框,可是现在的问题是必须刷新以后才能弹出,且弹出的时候是显示的结果,并没有再显示为搜索框,这个该怎么改啊??
有知道的告诉下 ,谢谢了
解决方案 »
- 正则表达式:有一串字符串,中间有多个">"符号,获取最后一个">"符号后面的内容
- tomcat7可以运行 tomcat6秒退
- jsp页面传值到action中
- 关于用户组与权限的问题
- 小僧求助...这是什么错误...javax.servlet.UnavailableException
- 如何處理applet重新編譯後頁面上仍然顯示舊畫面的問題?
- 急啊!JSP页面显示不了!!在线等!高手快进
- 学JSP要不要需要ASP基础?
- 救命呀!如何去掉在html上首次调用自己写的com组件时弹出的警告框?很难解决吗?
- 一个低级问题,请问JSP写的程序,服务器用TOMCAT,是不是会限制每秒连接的次数?
- 如何在jsp文件里控制pdf附件的下载、复制
- spring+ibatis配置事务报错 !!!!!!!!求教
function closeBox(){document.getElementById("rbbox").style.display="none";}Q:可是现在的问题是必须刷新以后才能弹出
我js很垃圾,不献丑了。
关闭的时候,隐藏div同时重画div