Here is the original code:
That would not play at all with IE6 or 7 but it played fine with Firefox, Konqueror, and Opera. After much digging, I found SWFObject which enabled me to embed the Flash player using JavaScript. Here is the revised code:
This text will be replaced by the Flash banner rotator.
var so = new SWFObject("/site_media/video_players/gallery.swf?gallery_url=/banner-playlist", "banner_rotator", "300", "300", "7", "#ffffff");
so.write("flash_banner_rotator");
This works on all browsers and is apparently more robust. The gallery_url parameter is actually a Django function call. That function returns an XML playlist to the player.