网页右下角弹出窗口的代码!!!!求代码高手进!!!

来源:百度知道 编辑:UC知道 时间:2024/09/28 17:53:38
<style type="text/css">
#rbbox{position:absolute;right:0;bottom:0;width:300px;height:0px;overflow:hidden}
.button{display:inline;float:right;font-size:12px;cursor:pointer}
</style>
<body><div id="rbbox"><a class="button" onclick="closeBox()">关闭</a><iframe src="flash/200659161127294.swf" frameborder="0" height="200" width="300" scrolling="no"></iframe></div>
</body>
</html>
<script language="javascript" type="text/javascript">
window.onload=function(){showBox();setTimeout("closeBox()",5000)}
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.getElementByI

我替你改了下,你看行不;

<style type="text/css">
#rbbox{position:absolute;right:0;bottom:0;width:300px;height:0px;overflow:hidden}
.button{display:inline;float:right;font-size:12px;cursor:pointer}
</style>
<body><div id="rbbox"><a class="button" onclick="closeBox()">关闭</a><iframe id="ifb" src="flash/200659161127294.swf" frameborder="0" height="200" width="300" scrolling="no"></iframe></div>
</body>
</html>
<script language="javascript" type="text/javascript">
window.onload=function(){
showBox();
setTimeout("closeBox()",5000);
e=document.getElementById("ifb");
e.onclick = function(){window.open("http://www.baidu.com","_b