Title: Using SWFObject and Calling Javascript
Last modified: August 19, 2016

---

# Using SWFObject and Calling Javascript

 *  Resolved [Jparra](https://wordpress.org/support/users/jparra/)
 * (@jparra)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/using-swfobject-and-calling-javascript/)
 * 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&#8221](http://c1test.com/images/header.swf&#8221);,“
   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 a[LINK](http://c1test.com) to what I have so far.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [Jparra](https://wordpress.org/support/users/jparra/)
 * (@jparra)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/using-swfobject-and-calling-javascript/#post-664635)
 * 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&#8221](http://c1test.com/images/header.swf&#8221);,
   and just changed it to header.swf
 *  [planethiphoptv](https://wordpress.org/support/users/planethiphoptv/)
 * (@planethiphoptv)
 * [18 years ago](https://wordpress.org/support/topic/using-swfobject-and-calling-javascript/#post-664866)
 * hmmm……
 * (having the same issue…and trying to research the solution….)
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years ago](https://wordpress.org/support/topic/using-swfobject-and-calling-javascript/#post-664867)
 * you are not having the same issue, unless you have changed something and digging
   up a 5mo old thread is lame.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Using SWFObject and Calling Javascript’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [whooami](https://wordpress.org/support/users/whooami/)
 * Last activity: [18 years ago](https://wordpress.org/support/topic/using-swfobject-and-calling-javascript/#post-664867)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
