分享

写回答

发帖

[经验] 使用mobi域名的免费主机是免广告的

GoDaddy GoDaddy 867 人阅读 | 5 人回复

发表于 2010-2-18 18:43:13 | 显示全部楼层 |阅读模式

大家都是这样吗

回答|共 5 个

a275067115

发表于 2010-2-18 21:44:05 | 显示全部楼层

乱说

okxugang

发表于 2010-2-18 21:46:22 | 显示全部楼层

GD官方说的吗>? 还是LZ自己的没出广告啊???

add.c

发表于 2010-2-18 22:03:12 | 显示全部楼层

不过是楼主使用的程序没有广告罢了.
免费空间都是有广告的

偶然好看

发表于 2010-2-18 22:22:51 | 显示全部楼层

function domainCheck(domain, domainExt)
{
        var isType = false;

        for(i = 0; i < domainExt.length; i++)
        {
                re = new RegExp("\\"+domainExt[i]+"$");
                if (domain.match(re))
                {
                        isType = true;
                        break;
                }
        }       
       
        return isType;
}

var ref = document.referrer;

if ( ref.length <= 0 )
    ref = window.location;

if(location.protocol == "https:")
{     
  var url="https://a12.alphagodaddy.com/?ref=" + escape(ref) + "&url=" + escape(window.location) + "&leo=0";
} else {
  var url="http://a12.alphagodaddy.com/?ref=" + escape(ref) + "&url=" + escape(window.location) + "&leo=0";
}

var htmlStr = '<iframe id="conash3D0" frameborder=0 border=0 width="100%" height="115px" marginwidth=0 marginheight=0 allowtransparency=true vspace=0 hspace=0 scrolling=no src="' + url +
'"></iframe>';

// to include other domain types to be filtered, add it to the list of array items.
var domainExt = new Array(".mobi");

if ( domainCheck(document.domain, domainExt) == false )
{
        if ( document.body.insertAdjacentHTML )
        {
                document.body.insertAdjacentHTML('AfterBegin', htmlStr);
        }
        else
        {
                var r = document.createRange();
                r.setStartBefore(document.body);

                var parsedHTML = r.createContextualFragment(htmlStr);

                document.body.insertBefore(parsedHTML, document.body.firstChild);
        }

        document.body.style.margin = '0px';
        document.body.style.padding = '0px';
}

add.c

发表于 2010-2-18 22:41:00 | 显示全部楼层

不要试图屏蔽其广告
甚至你是用的程序不能显示广告都有很大风险
您需要登录后才可以回帖 登录 | 注册

本版积分规则