BillyRayPreachersSon
Programmer
I've been reveiwing some code given to us by AdTech, our banner ad provider, and was amazed to see the following code. It really beggars belief that some people write code like this and expect it to work.
I thought I'd post it here just so that if anyone else has trouble getting AdTech code to work when JS is disabled, this might help them out (and provide a laugh into the bargain). Well done, AdTech!
Coedit Limited - Delivering standards compliant, accessible web solutions
[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
I thought I'd post it here just so that if anyone else has trouble getting AdTech code to work when JS is disabled, this might help them out (and provide a laugh into the bargain). Well done, AdTech!
Code:
document.write("<SCR"+"IPT language='JavaScript1.1' SRC=\"[URL unfurl="true"]http://ad.uk.doubleclick.net/ad/[/URL][snip]\">\n");
document.write("</SCR"+"IPT>\n");
[!]document.write("<NOSCRIPT>\n");[/!]
document.write("<A HREF=\"[URL unfurl="true"]http://adserver.adtech.de/adlink[/URL][snip]\">\n");
document.write("<IMG SRC=\"[URL unfurl="true"]http://ad.uk.doubleclick.net/ad/[/URL][snip]\" BORDER=0 WIDTH=300 HEIGHT=250 ALT=\"Click Here!\"></A>\n");
[!]document.write("</NOSCRIPT>\n");[/!]
var adcount_1584317_=new Image();
adcount_1584317_.src="[URL unfurl="true"]http://adserver.adtech.de/adcount[/URL][snip]";
Coedit Limited - Delivering standards compliant, accessible web solutions
[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]