(备注该代码的图片大小为250*150 代码里面有参数自己看缺埋高下就知道了)document.writeln("<div id=\"qqaddiv\" style=\"position:absolutez-index: 100\">")
document.writeln("<a href=链接地址 target=_blank><img src=图片链接地址 border=0></a>")
document.writeln("</div>")
var bodyfrm = ( document.compatMode.toLowerCase()=="css1compat" ) ? document.documentElement : document.body
var adst = document.getElementById("qqaddiv").style
adst.top = ( bodyfrm.clientHeight - 150 ) + "px"
adst.left = ( bodyfrm.clientWidth - 250 ) + "px"
function moveR() {
adst.top = ( bodyfrm.scrollTop + bodyfrm.clientHeight - 150 ) + "px"
adst.left = ( bodyfrm.scrollLeft + bodyfrm.clientWidth - 250 ) + "px"
}
setInterval("moveR()", 80)看看对不对
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)