flash banners

Hi,
I am looking for a java script to display a selection of random flash banners on my site, I already have on that displays random .gif and .jpg but not .swf

after many hours of trying I found a script on this site: http://board.flashkit.com/board/archive/index.php/t-564434.html

I got it working, but it uses "document.write()" in the script which opens a new html page when it runs. I just dont know how to re-wright it to work on the top of my webpage.

If there is anyone that knows about this or has set somthing similer up before, I would really apreachate the help.
Have you tried the innerHTML approach?

(Note: You'll need to finish writing in the embed code. I just put in the basics for the example / make it readable.)
Thanks Dreamcast that works great.:dance:
just what I needed to get started with

Original thread: https://assemblergames.com/threads/flash-banners.18087/