Random Flash Banner
Below is a short script that will randomly load a Flash banner using UFO. All you need to do is pass it the UFO object names… and it will do the rest.
var flashBanners = new Array(ufoFlashBanner01,ufoFlashBanner02);
function loadRandomBanner() {
randomBanner = Math.floor(Math.random()*flashBanners.length);
UFO.create(flashBanners[randomBanner],"introductionVideo");
}
loadRandomBanner();
About this entry
You’re currently reading “Random Flash Banner,” an entry on Wercshop
- Published:
- 7.29.08 / 3pm
- Category:
- JavaScript
- Tags:
No comments
Jump to comment form | comments rss [?] | trackback uri [?]