I am new to this Java Scripting stuff so I am looking for a little help. I have seen posted in here JavaScript for randomly displaying .fla files.
What I am trying to accomplish is displaying flash banners in order (1.swf, 2.swf, 3.swf) along with a different url for each one. 1.swf always get the same url, 2.swf samething, etc.

I have tried the Flash file approach tageting the external flash banners but I am running into problems with the main flash file taking the flash banners and making there background color transparent. I have no clue on that, so I gave up and am not exploring the Javascript idea. I got everthing to work with this code but I dont know how to change it to do what I stated above.

Any help you guys could give me on this would be greatly appreciated.

Here is the code I need to change some how:

You'll are the greatest!!!

var movies = new Array("b1.swf", "b2.swf", "b3.swf")
var s_width = new Array("468","468","468")
var s_height = new Array("60","60","60")

len = movies.length;
today=new Date();
today=today.getTime()/10;
temp_number=today%len;
rnd = Math.round(temp_number);
// Output into the source:
document.writeln('<EMBED src="'+ movies[rnd] +'" quality=high WIDTH="'+ s_width[rnd] +'" HEIGHT="'+ s_height[rnd] +'" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
document.writeln('</EMBED>');

</script>