title: Show random swf banners in HTML
body: <p>I have two flash banners (.swf) and i want to show them randomly on page refresh.
  I can do it with image files (using javascript), but with flash it's not working</p>
  
  <p>For image files i can do this.</p>
  
  <pre><code>&lt;script type='text/javascript'&gt;
  
  var HeaderImage= new Array()
  
  HeaderImage[0]="URL-OF-HEADER-IMAGE-1";
  HeaderImage[1]="URL-OF-HEADER-IMAGE-2";
  var random=Math.round(2*Math.random());
  
  document.write(&amp;quot;&lt;style&gt;&amp;quot;);
  document.write(&amp;quot;#header-wrapper {&amp;quot;);
  document.write(&amp;#39; background:url(&amp;quot;&amp;#39; + HeaderImage[random] + &amp;#39;&amp;quot;) no-repeat left TOP;&amp;#39;);
  document.write(&amp;quot; }&amp;quot;);
  document.write(&amp;quot;&lt;/style&gt;&amp;quot;);
  
  &lt;/script&gt;
  </code></pre>