落伍者站长论坛's Archiver

scybltt 发表于 2008-5-21 14:41

右下角浮动广告代码(仿QQ)

[code]<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>
[/code]

tioner 发表于 2008-5-21 15:30

弄个演示更感激你!

bwjt 发表于 2008-5-22 12:29

:cool:

tofounder 发表于 2008-8-4 22:40

看看再说

zhangyafeibest 发表于 2008-8-5 00:03

:ohh:

酷石头 发表于 2008-8-5 10:48

登记收藏先。

samvy 发表于 2008-8-5 11:20

:cool: :cool:

kabuer 发表于 2008-8-5 11:30

加个效果显示更好

lhealth 发表于 2008-8-5 22:17

谁做个演示?

zhcmz 发表于 2008-8-10 18:25

我给大有一个演示[url]http://dy.cfxxw.com/xijupian/10232/[/url],注意的页面的右下角。

qizai 发表于 2008-8-10 19:10

算不算恶意广告

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.