WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Using SWFObject and Calling Javascript (4 posts)

  1. Jparra
    Member
    Posted 6 years ago #

    Good Evening,
    I have read a lot through the forums and on other blogs about replacing your header with a flash SWF file.

    I have gotten pretty far on my own experimenting with this but I am wondering how you call the javascript in the beggining of the file. Here is my code placed after the <div id="header">:
    <script type="text/javascript" src="swfobject.js"></script>

    <div id="headerflash">
    </div>

    <script type="text/javascript">
    var so = new SWFObject("http://c1test.com/images/header.swf", "headerflash", "900", "250", "8", "#FFFFFF");
    so.write("headerflash");
    </script>

    Is that all the code I need to call the swfobject.js?
    If so all I'm getting is a white box. Although this box is dispaying in flash because you can right click and see that it's Flash. Maybe I'm screwing up with the div ID I'm not sure. I know that is definitely the URL where the swf is located. Any help would be truly appreciated.
    Thanks,
    Justin

    P.S. Here is aLINK to what I have so far.

  2. Jparra
    Member
    Posted 6 years ago #

    Got IT!! I just changed the URL if the SWF to the main folder of the theme instead of the "images" folder. Then I changed th area that says ("http://c1test.com/images/header.swf", and just changed it to header.swf

  3. planethiphoptv
    Member
    Posted 6 years ago #

    hmmm......

    (having the same issue...and trying to research the solution....)

  4. whooami
    Member
    Posted 6 years ago #

    you are not having the same issue, unless you have changed something and digging up a 5mo old thread is lame.

Topic Closed

This topic has been closed to new replies.

About this Topic