Topic: Embedding swfobject in Wordpress

I am trying to embed this header: http://tinyurl.com/nnxu86 into this page: http://tinyurl.com/ms8hql . I have zero experience with flash and I've been searching for clues on how to make this work but haven't found the solution yet. Hopefully it's something simple.

I have the following files in the theme folder:

banner.swf
banner.xml
swfobject.js
home-collage.jpg


I have following in the head:

<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
swfobject.embedSWF("banner.swf", "banner", "800", "280", "8.0.0");
</script>

And I have the following in the home-page.php template:

<div id="banner">
If you see this you need to install Adobe flash player.
</div>

I know I'm missing something, but I have no idea what it is. Can someone help? Thanks!

2

Re: Embedding swfobject in Wordpress

Susie you can pick the code from my page source. Adapt it to your page, that is all.
You'll only need to have one line for swf object in the head. The rest should be in a place where you embed Flash.
There more to it of course in the documentation for SWFObject, if you'll need it.

Re: Embedding swfobject in Wordpress

Hmmm... it's still not working for me.  Am I missing something?

I have this in the template where I want the flash item to show:

<div id="banner">

<script type="text/javascript">
 swfobject.embedSWF("banner.swf", "banner", "800", "280", "8.0.0");
</script>

</div>

Is the issue the fact that I'm doing this in Wordpress?

Edit to add:  I just added the full path to banner.swf and it still doesn't work.

Last edited by Susie (2009-06-22 13:11:19)

4

Re: Embedding swfobject in Wordpress

If you are sure in this code, check paths to the movie and .js file in the head.
I use other lines for swf embed which worked ok so far.
On this page you can compare your snippet with what should be, may be it will help.