【www.gdgbn.com--php常用代码】

document.writeln(" ");
document.writeln("");
document.writeln("");
var bodyfrm = ( document.compatmode.tolowercase()=="css教程1compat" ) ? document.documentelement : document.body;
var adst = document.getelementbyid("qqaddiv").style;
adst.top = ( bodyfrm.clientheight - 156 ) + "px";
adst.left = ( bodyfrm.clientwidth - 254 ) + "px";
function mover() {
 adst.top = ( bodyfrm.scrolltop + bodyfrm.clientheight - 156 ) + "px";
 adst.left = ( bodyfrm.scrollleft + bodyfrm.clientwidth - 254 ) + "px";
}
//就是这个函数,设置adst的display属性为none就行了
function closer(){
 adst.display="none"; 
 }
setinterval("mover();", 80);

本文来源:http://www.gdgbn.com/jiaocheng/29324/