| Welcome to WebmasterWorld Guest from 184.108.40.206 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
Im trying to enter an ad code onto a proxified page, have been working on it for about 3 hours and cant seem to get it, any help is appreciated.
Here is the code
if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random());
phpAds_random = phpAds_random.substring(2,11);
document.write ("http://www.example.com/adserve_rot.php?n=" + phpAds_random);
document.write ("&exclude=" + document.phpAds_used);
document.write ("&referer=" + escape(document.referer));
document.write ("'><" + "/script>");
Anyone know how I can echo that so it actually displays?
[edited by: dreamcatcher at 8:21 am (utc) on June 18, 2007]
[edit reason] Exemplified urls. [/edit]
It should work okay.
Try building the document.write strings into another variable, and then sending that variable to alert(); to verify what it's trying to read. (It is easier to read your raw logs, if you have access).
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved