Closed seanfoo closed 13 years ago
Hmmm, so I can't reproduce the problem. I changed your code slightly:
var ad300 = '<SCRIPT type="text/javascript">\n <!--\n var randomNumber = Math.floor(Math.random()*9999999999+1);\n document.write(\'<scr\' + \'ipt src=http://ad.doubleclick.net/adj/baseballreference.fsv/ros;sect=ros;fantasy=no;game=no;tile=3;sz=300x250;ord=\' + randomNumber + \'?></scr\' + \'ipt>\');\n// -->\n</SCRIPT>\n';
you had + random_number +
which I changed to + randomNumber +
. I assume that was a typo.
I tried about 20 times but the ad loads fine every time. Maybe I'm just not getting the right random number. It could also be that your domain gets different ad code. So, if you could add two things:
Thanks for the report!
Assuming this is resolved. Update with test case if not.
This may be unsolvable, but I thought I would mention it.
I have a page that loads an ad, google analytics and a nielsen tracking beacon. I'm trying writecapture on the ad, but I'm running into the document.write('') blank screen in FF. I'm not seeing it in chrome at the moment. http://retro.bb-ref.org/players/j/jeterde01.shtml
Here is the jquery code i'm using.
When this runs in FF I sometimes get the blank screen and here is the response that causes it.
This sets off a cascade of document.writes as we run through a half dozen different js scripts to generate the page.
any help would be greatly appreciated. These damn ads cause the site to hang every once and awhile I'm pretty sure they are driving down pages/visit pretty substantially. My next option is loading them in the footer and moving them.