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