Flash Banner doesn’t work
-
Hi There,
I’m trying to add a simple Flash banner to my wordpress site. However, even though I have produced the Flash movie to the exact pixel dimensions of the banner, it does not show up.
Does anyone know why?
Kashif.
-
You could be having a problem with your source location for the .swf?
If you could provide a URL to a page where the flash banner is meant to be loading that would be great. Have you cross checked that you can load the .swf by typing the URL of the swf directly into your address bar?
Hi Alex,
The URL and flash seems to work.
http://www.wellworthdriving.com/wp-content/themes/WWDTheme/images/header.swf
Don’t know why it’s not showing up.
Any ideas?
Kashif.
Hi Alex,
The URL where the Flash banner is supposed to appear is:
http://www.wellworthdriving.com/
As you can see, the site is still work in progress. But I wanted the Flash banner to appear at the top above the navigation buttons.
Appreciate you help and advice.
Kashif.
Well, as far as I can tell, your problem lies with the lack of code calling the swf in your header.php file in your theme.
At the moment it reads:
<div id="header"> <div id="headerimg"> <h1><a href="http://www.wellworthdriving.com/"></a></h1> <div class="description"></div> </div> </div>Which means there’s no way any flash is going to show up.
I suggest you edit your header.php and include the following code in <div id=”header”>:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="enterwidth" height="enterheight" id="flashbanner"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="<?php bloginfo('stylesheet_directory'); ?>/images/header.swf" /> <param name="wmode" value="transparent" /> <!--[if !IE]>--> <object type="application/x-shockwave-flash" data="<?php bloginfo('stylesheet_directory'); ?>/images/header.swf" width="enterwidth" height="enterheight"> <param name="movie" value="slideshow.swf" /> <param name="wmode" value="transparent" /> </object> <!--<![endif]--> </object>Hopefully that should do it?
Hi Alex,
Thanks for that.
Will give that a try.
Much appreciated.
Kashif.
Hi Alex,
That worked! Thanks.
But the Flash seems to have shifted to the right and down. Is this a style sheet issue or something in the code you gave me above?
Kashif.
For some reason there’s nothing loading on the above URL for me at the moment – is it active on all pages on your new blog?
Hi Alex,
Sorry. Switched to the wrong theme!
It should be there now. You should see the Flash banner. It is offset towards the right and downwards.
Again, appreciate your advice 🙂
Kashif.
Cool. That’s easier.
Change your #headerimg code in your style sheet to read:
#headerimg { position: relative; padding: 0; height: 60px; }That should do it. You might have to make some minor other adjustments but it might entail slight adjustments to the swf.
It worked!!!
Thanks Alex. You’re a star.
Kashif.
Brilliant – please mark this resolved 🙂
Hi Alex,
Yes will do.
Before I do that, I have one other query.
Is there a way to add Flash SWF files to Posts and Pages?
Kashif.
I’d have a look through the plugins directory – if you just try adding through the code view it will inevitably get messed up as most of the code that people use to embed flash is actually completely invalid (but IE doesn’t understand the valid method so that’s all that matters).
There’s loads of plugins addressing this, but each one offers slightly different functionality.
Okay. Thanks again Alex.
The topic ‘Flash Banner doesn’t work’ is closed to new replies.