Loading SWFs Randomly - Part 1: JavaScript
By: David Stiller on Thursday, November 12, 2009
Reader Level: 
With Flash, interactivity isn't always about the content itself. Sometimes it's understated. Sometimes, for example, it's merely about picking a SWF at random when the user decides to reload the HTML page — regardless if the Flash content is programmed or not. You might use an approach like this to randomly display a set of Flash banner ads or cartoons, just to keep the page "fresh."
Whatever your intent, if you've ever wanted to try something like this but didn't know where to begin, this article is for you. The free SWFObject embedding solution, and a few lines of custom JavaScript, are all you need.
The Loading SWFs Randomly Series:
Loading SWFs Randomly - Part 1: JavaScript
Loading SWFs Randomly - Part 2: ActionScript
Loading SWFs Randomly - Part 3: Improvements
Loading SWFs Randomly - Part 4: Improvements (Cont)
Loading SWFs Randomly - Part 5: Improvements (Concluded)

