D
Developer
Ok I have a bunch of ads, so I wanted to show 1 of a bunch. So I figure:
var randomnumber=Math.floor(Math.random()*11); // chenge the muliiplier to the number of ads available
will give me an index. So I have a bunch of ads already coded as document.write statements. So should I use a switch statement or move the ads to an array>
Ideas?
var randomnumber=Math.floor(Math.random()*11); // chenge the muliiplier to the number of ads available
will give me an index. So I have a bunch of ads already coded as document.write statements. So should I use a switch statement or move the ads to an array>
Ideas?