[提问]
奇怪了godaddy免费主机asp不显示广告
|
|
RT
html就显示.把后缀换成asp了就不显示了。
晕死,不显示广告会不会被封啊?
我现在直接在head里加了AD代码了。 |
|
|
|
|
|
|
|
|
|
|
ccrazyy
发表于 2010-7-26 16:33:18
|
显示全部楼层
function domainCheck(domain, domainExt)
{
var isType = false;
for(i = 0; i < domainExt.length; i++)
{
re = new RegExp("\\"+domainExt+"$");
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=" + ref + "&url=" + window.location + "&leo=0";
} else {
var url="http://a12.alphagodaddy.com/?ref=" + ref + "&url=" + 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';
}
把godaddy 的 JS贴出来 高手出来解释下 |
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2010-7-26 17:17:59
|
显示全部楼层
|
|
|
|
|
|
|
|