订阅我的博客:订阅我的博客

两侧浮动广告代码(随页面滚动)

<script language="JavaScript">
    var delta=0.5
    var collection;
    function floaters() {
        this.items    = [];
        this.addItem    = function(id,x,y,content)
                  {
                    document.write('<DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute;  width:80px; height:60px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'">'+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()
        {
            if(screen.width<=800)
            {
                for(var i=0;i<collection.length;i++)
                {
                    collection[i].object.style.display    = 'none';
                }
                return;
            }
            for(var i=0;i<collection.length;i++)
            {
                var followObj        = collection[i].object;
                var followObj_x        = (typeof(collection[i].x)=='string'?eval(collection[i].x):collection[i].x);
                var followObj_y        = (typeof(collection[i].y)=='string'?eval(collection[i].y):collection[i].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    = '';
            }
        }   
       
    var theFloaters        = new floaters();
    theFloaters.addItem('followDiv1','document.body.clientWidth-90',80,'<br><a href="<%=L_MAIN%>" target=_blank><img src="<%=R_TOP%>" border=0 width="84" height="300" alt="<%=R_MAIN%>" align=top></a>');
    theFloaters.addItem('followDiv2',6,80,'<br><a href="<%=L_MAIN%>" target=_blank><img src="<%=R_TOP%>" border=0 width="84" height="300" alt="<%=R_MAIN%>" align=top></a>');
    theFloaters.play();   
 
  </script>

  • 博客赚钱:
  • BackLinks 是国外的一家链接服务平台. 主要专注于文本链接, 适合网站和博客. 最大特点是它的定价策略:不在乎你的流量, 只在乎你的PR指数. 链接价格也是按PR值来计算, 完全固定,点击注册
  • LinkWorth 是一个全方位的付费链接提供商. 其提供的付费链接模式非常丰富,一般PR在3以上比较Paypal支付,25美金起付。广告主卖链接的时间都比较长,都在半年以上。点击注册
  • 更多博客赚钱方法请点击此处望日博客有详细的说明介绍与评价。
« 国内外主要搜索引擎登陆地址 暴风影音CEO冯鑫:我们把软件瞄向有金矿的方向 »
  • 相关文章:

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

  • 订阅我的博客:订阅我的博客
  • 通过Google订阅本站       通过鲜果订阅本站
  • 通过抓虾订阅本站       通过QQ邮箱订阅本站
Make Money
make money with your web site SponsoredReviews.com
text-link-ads linkworth

最新评论及回复

最近发表

网站收藏

精彩推荐

Copyright 望日晖博客 WWW.WRiHui.Cn. Some Rights Reserved. 收录查询 赣ICP备09009356号
Powered By Z-Blog 1.8 Arwen Build 90619 | 管理登录