1、高度可设定。
2、可滑出,但高度不可指定,只能左下角 or 右下角
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<metahttp-equiv="Content-Type"content="text/html; charset=GBK"/>
</head>
<body>
<styletype="text/css">
<!--
#rbbox{
border:0px solid #f00;
width:180px;
height:0px;
margin:0px;
padding:0px;
overflow:hidden;
position:absolute;
left:0; //right:0;
bottom:0;
}
.vipall{
border:0px solid #00f;
background:#360;
width:180px;
height:150px;
margin:0px;
padding:0px;
position:relative;
}
.vipclose{
border:0px solid #f00;
font-size:12px;
}
.vipclose a{
text-decoration:none;
color:#444;
}
.vipclose a:hover{
text-decoration:none;
}
-->
</style>
<divid="rbbox">
<divclass="vipclose"><ahref="#"onclick="closeBox()">关闭</a></div>
<ahref="http://xuqin.blog.51cto.com/"style="cursor:pointer"><divclass="vipall"></div></a>
</div>
<scriptlanguage="javascript"type="text/javascript">
<!--
window.onload=function(){showBox();setTimeout("closeBox()",300000)}
function showBox(o){
if (o==undefined) o=document.getElementById("rbbox");
oo.style.height=o.clientHeight+2+"px";
if (o.clientHeight<180) setTimeout(function(){showBox(o)},5);
}
function closeBox(){document.getElementById("rbbox").style.display="none";}
-->
</script>
</body>
</html>