something wrong with the ads code

Status
Not open for further replies.

chongkolai

New Member
Messages
79
Reaction score
0
Points
0
after putting this code on my page.. my page does not load..


<script type="text/javascript" src="http://x10hosting.com/adserve.js?corporate"></script>
 

lambada

New Member
Messages
2,444
Reaction score
0
Points
0
Where about in your site did you put the code?
If you could post a snippet that would be even better.

Chances are its in a PHP or perl block which could cause an error.
 

chongkolai

New Member
Messages
79
Reaction score
0
Points
0
ok thanks for quick response.. ;)
Edit:
--> i copied adserve.js to my ROOT Directory and renamed as adsX10HOSTING.js..

<script type="text/javascript" src="http://chongkolai.x10hosting.com/adsX10HOSTING.js?corporate"></script>


--> and edit the file.. now its working..


//////////////////////////////////////////////////////////////////////////////

if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
document.write ("http://www.x10hosting.com/advert/adjs.php?n=" + phpAds_random);
document.write ("&what=zone:1&target=_blank");
document.write ("&exclude=" + document.phpAds_used);
if (document.referrer) {
document.write ("&referer=" + escape(document.referrer));
}
document.write ("'><" + "/script>");
 
Last edited:

RenderX

New Member
Messages
22
Reaction score
0
Points
0
OK. Here is the code you use:


<script type="text/javascript" src="http://x10hosting.com/adserve.js?corporate"></script>

Now, were it says corporate, you need to change that to your user name. Example:


<script type="text/javascript" src="http://x10hosting.com/adserve.js?renderx"></script>

That is what I use. Make sure you put your user name in there so you get credit or what not for the hits.
 

Zenax

Active Member
Messages
1,377
Reaction score
4
Points
38
I am not sure whether you are supposed to copy adserve to your account, as it is a script that x10 use. I don't actually know if that is allowed or not. I would assume yes, as you are still showing the ads. I would wait for an admin decision on this.
 

chongkolai

New Member
Messages
79
Reaction score
0
Points
0
i only modified the address WWW because im a having a problem accessing x10hosting.com without WWW..


("http://www.x10hosting.com/advert/adjs.php?n=" + phpAds_random);



---> maybe its ok..
coz some sites hosted by x10 is using this code on their page
like this one --> http://www.survivorstuff.x10hosting.com/


<!--webbot bot="HTMLMarkup" startspan --><script language='JavaScript' type='text/javascript'>
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
document.write ("http://x10hosting.com/advert/adjs.php?n=" + phpAds_random);
document.write ("&what=zone:1&target=_blank");
document.write ("&exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&referer=" + escape(document.referrer));
document.write ("'><" + "/script>");
//-->
</script><noscript>
 
Status
Not open for further replies.
Top