找了好久终于找到了,效果还不错,FF和IE7下通过。

收藏备用。

<div style=”position:absolute;border:1px solid #000;right:0;” id=”ad”><a href=”http://www.zishu.cn” mce_href=”http://www.zishu.cn”>子鼠测试.</a></div>
//这一行写了这个DIV是绝对定位,最好再加一下z-index;边框为1px的实线黑色边;距右边有0PX; ID=AD;

<script language=”JavaScript” type=”text/javascript”>
function rightBottomAd(){
var abc = document.getElementById(”ad”);
abc.style.top = document.documentElement.scrollTop+document.documentElement.clientHeight-20+”px”;//20是这个层的高度;
setTimeout(function(){rightBottomAd();},50);
}
rightBottomAd();
</script>

代码原创:http://www.yeu-em.cn/article.asp?id=471

如果你是第一次来这儿,欢迎订阅 feedsky RSS feed。 第一时间看到更多精彩内容,谢谢你的访问!
原文地址:http://www.axmv.com/fu-dong-guang-gao/
转载请注明出处,非常感谢!
admin on 05月 9th, 2008 | File Under 代码 | -