1 Reply Latest reply on Jun 15, 2011 6:38 PM by adninjastrator

    Embedding Multiple SWF into HTML page with swfobject.js

    Seraph00

      Hello,

       

      I currently embed a swf video on an html page with this script:

       

       

       

      <script type="text/javascript" src="swfobject.js"></script>

      <script type="text/javascript">

      window.onload = function() {

      if (swfobject.hasFlashPlayerVersion("9")) {

      var att = { data:"player_3982x260_fv4.swf", width:"640", height:"323" };

      var par = { menu:"false", allowfullscreen:"true" };

      var id = "myAlternativeContent";

      var myFlashContent = swfobject.createSWF(att, par, id);

      }

      };

      </script>

       

      I then refference the var id of "myAlternativeContent" in the div I want the swf placed in.

       

      I've attempted a few different ways to embed two SWFs in the html but havent had any luck.  Here's the test page I'm working on: http://www.socialanimal.tv/g4/test.html

       

      How would the window.onload = function() be changed to refference two different swfs? Thanks if advance.