My flash swf file header shows only on the front page of my site...Where can I find information on replacing a jpeg header with a embedded flash header on all pages?

I inserted the code below in my page.tpl.php :

<div class="header">

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="600" height="297">
      <param name="movie" value="sites/all/themes/burnt_rubber_Theme/images/photoheader.swf" />
      <param name="quality" value="high" />

<embed src="sites/all/themes/burnt_rubber_Theme/images/photoheader.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="600" height="297"></embed>
    </object>
</div>

.....for some reason it only shows on front page, any help will be greatly appreciated.

Edited by WorldFallz - added <code> tags.

Comments

zbricoleur’s picture

Try changing this:
<param name="movie" value="sites/all/themes/burnt_rubber_Theme/images/photoheader.swf" />
to this:
<param name="movie" value="/sites/all/themes/burnt_rubber_Theme/images/photoheader.swf" />

etgraphicd2’s picture

I tried your suggestion; but no luck ... it did not work for me.
Thanks for trying to help

danreb’s picture

Hi,

Just want to show you my site if this is what you want to achieve?
http://www.thecapulenos.com - the header or logo there is flash and it is shown in all pages. If this is what you wanted to do then I can share what modification I've done in my theme. I want to confirm first.

Ok i think you just need to declare an absolute url to you flash file, it is the shortcut method to your problem.

From this:


<div class="header">

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="600" height="297">
      <param name="movie" value="sites/all/themes/burnt_rubber_Theme/images/photoheader.swf" />
      <param name="quality" value="high" />

<embed src="sites/all/themes/burnt_rubber_Theme/images/photoheader.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="600" height="297"></embed>
    </object>
</div>

To this:

<div class="header">

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="600" height="297">
      <param name="movie" value="http://www.yourdomain.com/sites/all/themes/burnt_rubber_Theme/images/photoheader.swf" />
      <param name="quality" value="high" />

<embed src="http://www.yourdomain.com/sites/all/themes/burnt_rubber_Theme/images/photoheader.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="600" height="297"></embed>
    </object>
</div>

Please replace http://www.yourdomain.com with your real domain name.

If this wont work then I will share my second method of inserting flash which will need additional javascript library swfobject.js, a more complicated method but much better if you want your site to pass xhtml strict validation.

etgraphicd2’s picture

Hello,
I really appreciate your help. I tried your method and it worked out great for me.
Thanks again for sharing your knowledge.

danreb’s picture

Glad it helps...

etgraphicd2’s picture

I have moved my drupal 6 site from my local mamp server to my remote server and now I can only access my front page. When I try to log in as admin or as one of the dummy accounts I made up I only get access denied.
How can I get into my admin section to try to fix file path problem?
Is there a file I can access without logging in to fix this?

Any help will be greatly appreciated.
Thanks

lovén’s picture

Please do explain,
I'm interested in knowing your method to insert flash object in header with swfobject.js.

That would be what I'm searching for.

BurrowsDontMove’s picture

Thank you!

danreb’s picture

cazam’s picture

soooooooooo much!
Thanks for this post, saved me from weeks of stress and headache of not knowing wtf to do.

ss54’s picture

@etgraphicd2
you should have replaced your path with a complete url, and that is it like http://yoursite.com/....
sorry for being late in my reply. @etgraphicd2

vanessawood’s picture

etgraphicd2 you're a star :)