<!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>
<TITLE>可关闭的右下角浮动广告</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
</HEAD>
<style>
<!--
.div{
position: absolute;
border: 2px solid red;
background-color: #EFEFEF;
line-height:90px;
font-size:12px;
z-index:1000;
bottom:0;
right:0;
}
#sky{
width: 240px;
height:90px;
text-align:left;
}
#box{
width:982px;
height:900px;
}
-->
</style>
<BODY>
<div >
可关闭的右下角浮动广告
<div >--></div>
<SCRIPT LANGUAGE="JavaScript">
function sc5(){
document.getElementById("sky").style.top=(document.documentElement.scrollTop+document.documentElement.clientHeight-document.getElementById("sky").offsetHeight)+"px";
document.getElementById("sky").style.left=(document.documentElement.scrollLeft+document.documentElement.clientWidth-document.getElementById("sky").offsetWidth)+"px";
}
function closeDiv()
{
document.getElementById('sky').style.visibility='hidden';
if(objTimer) window.clearInterval(objTimer)
}
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!--
function scall(){
sc5();
}
window.onscroll=scall;
window.onresize=scall;
window.onload=scall;
//-->
</SCRIPT>
可关闭的右下角浮动广告 可关闭的右下角浮动广告
</div>
</BODY>
</HTML>