Not signed in (Sign In)

Vanilla 1.0.3 is a product of Lussumo. More Information: Documentation, Community Support.

  1.  
    This may sound clunky, but I am stuck with this method to do what I can.

    We are using the SwfObject to include a Flash file in the header of a page. The Flash file pulled in is a holder and we then pass in an individual movie value using Flashvars, or "addVariable". Here is the example code (which works fine BTW).

    <script type="text/javascript">
    // <![CDATA[
    var so = new SWFObject("holder.swf", "holder", "989", "147", "7.0.19", "");
    so.addParam("quality", "high");
    so.addParam("base", ".");
    so.addVariable("sectname", "kids");
    so.addVariable("delaysecs", "3");
    so.write("swfdiv_holder");
    // ]]>
    </script>

    The problem occurs when we need to include the whole header block of HTML using another Jscript tag. The block includes the whole header of the page, where the SWFObject.js script is included and then where it is written out on a page. Here is the line of code:

    <script id="version1.1" type="text/javascript" src="http://headerofdocument"></script>

    So once we use Javascript to include the HTML code on a different page (using htmlwriter("")) and therefore the Jscript, the swfObject stops working. Does anyone know, can this be made to work, even if it isn't the best way to do things?!

    Cheers
    • CommentAuthorGeoff
    • CommentTimeMar 20th 2007
     
    i'm not sure i understand your setup... you are writing the header using javascript and that includes more javascript?

    you should post a link to the site if you can.
    • CommentAuthornOObyone
    • CommentTimeMar 26th 2007 edited
     
    <object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/szDM261FjIY"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/szDM261FjIY" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>