3 Replies Latest reply on May 30, 2007 6:48 AM by kglad

    loading random .swf files into html document

    HuskerJay


      Desired scenario: I have a site which I want random .swf files to load into index page each time a user refreshes or visits the site.

      Solution: I used a Javascript array solution in the .html page. Note: it works perfectly in Firefox and Safari.
      The javascript code for that is listed below.


      Problem: In IE, the page which is supposed to load the random .swfs in blank.

      I tried to solve the problem by using an IE conditional statement with a single .swf embedded (so at least visitor could have interactive experience). Here's the code I used for that:


      <!--[if IE]>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="800" height="600">
      <param name="movie" value="drinks.swf" />
      <param name="quality" value="high" />
      <embed src="drinks.swf" quality="high" pluginspage=" http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="800" height="600"></embed>
      </object>
      <script type="text/javascript" src="fixit.js"></script>
      <![endif]-->

      Any help would be appreciated. The link to the site in question is: http://www.jayminnickinteractive.com