广告联盟网

 找回密码
 注册
查看: 663|回复: 6
打印 上一主题 下一主题

我在一个网站里看到这样的GG广告

[复制链接]
跳转到指定楼层
1#
发表于 2006-7-11 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
是不是修改了代码的呢?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
7#
发表于 2006-7-12 | 只看该作者
原来是这样,但这是违反条款的。
6#
 楼主| 发表于 2006-7-12 | 只看该作者
BINGQ 说对了。我只不是不便把网址贴出来吧!是用iframe
5#
发表于 2006-7-12 | 只看该作者
搂主,GG还没有买下Baidu啊。
4#
发表于 2006-7-11 | 只看该作者
代码里只有baidu。
3#
 楼主| 发表于 2006-7-11 | 只看该作者
是GOOGLE的。我贴代码出来吧!




        var delta=0.15
        var collection;
        function floaters() {
                this.items        = [];
                this.addItem        = function(id,x,y,content)
                                  {
                                        document.write('<DIV id='+id+' style=&quot;Z-INDEX: 10; POSITION: absolute;  width:80px; height:60px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'&quot;>'+content+'</DIV>');
                                       
                                        var newItem                                = {};
                                        newItem.object                        = document.getElementById(id);
                                        newItem.x                                = x;
                                        newItem.y                                = y;

                                        this.items[this.items.length]                = newItem;
                                  }
                this.play        = function()
                                  {
                                        collection                                = this.items
                                        setInterval('play()',10);
                                  }
                }
                function play()
                {

                        for(var i=0;i<collection.length;i++)
                        {
                                var followObj                = collection.object;
                                var followObj_x                = (typeof(collection.x)=='string'?eval(collection.x):collection.x);
                                var followObj_y                = (typeof(collection.y)=='string'?eval(collection.y):collection.y);

                                if(followObj.offsetLeft!=(document.body.scrollLeft+followObj_x)) {
                                        var dx=(document.body.scrollLeft+followObj_x-followObj.offsetLeft)*delta;
                                        dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));
                                        followObj.style.left=followObj.offsetLeft+dx;
                                        }

                                if(followObj.offsetTop!=(document.body.scrollTop+followObj_y)) {
                                        var dy=(document.body.scrollTop+followObj_y-followObj.offsetTop)*delta;
                                        dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
                                        followObj.style.top=followObj.offsetTop+dy;
                                        }
                                followObj.style.display        = '';
                        }
                }        
function closeAd1(){
followDiv1.style.visibility='hidden';}
function closeAd2(){
followDiv2.style.visibility='hidden';}
        var theFloaters                = new floaters();
        theFloaters.addItem('followDiv1',888,60,'<table cellspacing=0 cellpadding=0 width=114><tr height=18><td bgcolor=ff9900 colspan=3 align=center><font color=ffffff><b>主题推荐:     <a class=n6 href=javascript:closeAd1();><font color=ffffff>x</font></a></td></tr><tr><td width=1 bgcolor=ff9900></td><td><iframe id=gadframe marginwidth=0 marginheight=0 frameborder=0 scrolling=no src=http://www.******.com/adv/peixun_ad.htm#bg width=112 height=220></iframe><iframe id=gsoframe marginwidth=0 marginheight=0 frameborder=0 scrolling=no src=http://www.*******.com/adv/peixun_so.htm width=112 height=20></iframe></td><td width=1 bgcolor=ff9900></td></tr><tr height=1><td bgcolor=ff9900 colspan=3></td></tr></table>');
        theFloaters.addItem('followDiv2',1,60,'<table cellspacing=0 cellpadding=0 width=114><tr height=18><td bgcolor=ff9900 colspan=3 align=center><font color=ffffff><b>主题推荐:     <a class=n6 href=javascript:closeAd2();><font color=ffffff>x</font></a></td></tr><tr><td width=1 bgcolor=ff9900></td><td><iframe id=badframe marginwidth=0 marginheight=0 frameborder=0 scrolling=no src=http://cpro.baidu.com/cpro/ui/uijs.php?&uid=60535&n=oatimecpr&tm=20&cm=56&um=26&rsi0=180&rsi1=260&wn=1&hn=3&rssl0=center&rssl1=bottom&rsi2=0&rss0=&rss1=%23ffffff&rss2=%23467AD3&rss3=%23333333&rss4=%23666666&rss5=%23ffffff&rad=1&word=+window.location width=112 height=240></iframe></td><td width=1 bgcolor=ff9900></td></tr><tr height=1><td bgcolor=ff9900 colspan=3></td></tr></table>');
        theFloaters.play();
2#
发表于 2006-7-11 | 只看该作者
不像Google的
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|广告联盟网  

GMT, 2024-9-25 , Processed in 0.055254 second(s), 21 queries .

Powered by Discuz! X3.2

© 2005-2021 www.ggads.com GGADS 广告联盟网

快速回复 返回顶部 返回列表