<!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做好了,可是现在有以下几个问题:
  我搜索完后会有返回结果,返回结果我要在搜索框这个页面显示,然后当我关闭这个搜索框的时候,我再点还要弹出这个搜索框,可是现在的问题是必须刷新以后才能弹出,且弹出的时候是显示的结果,并没有再显示为搜索框,这个该怎么改啊??
有知道的告诉下 ,谢谢了