Re: using a flash header in place of image


  • Topic Author
  • Visitor
  • Visitor
14 years 2 months ago - 4 years 4 months ago #3133 by
Code:
www.govenom.com

milos what would i need to edit to drop a flash header in place of the image...

instead of logo_white.png

filename: logo_white.swf

would i just need to edit the index.php--- and what would i need to add...

thanks
trey
Last edit: 4 years 4 months ago by milos.

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
14 years 2 months ago #3134 by milos
Sorry, but I am not experienced with Flash.

Please Log in to join the conversation.


  • Topic Author
  • Visitor
  • Visitor
14 years 2 months ago - 4 years 4 months ago #3136 by
Would I not add a flash header in this manner?

...adding this in the index.php
Code:
<div class="wrapper1"><div class="wrapper_outside"> <div class="header"> <div class="logo"> <a href="index.php"><img src="<?php echo $template_path ?> [b][color=#880000]<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="980" height="150" align="left"><param name="width" value="980" /><param name="height" value="150" /><param name="align" value="left" /><param name="src" value="images/logo.swf" /><embed type="application/x-shockwave-flash" width="200" height="140" align="left" src="images/logo.swf"></embed></object>[/color][/b] <?php if($transparentImage=="white") { echo "black"; }else{ echo "white"; } ?>.swf" width="980" height="150" alt="joomla restaurant template" /></a> </div>

Trey
Last edit: 4 years 4 months ago by milos.

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
14 years 2 months ago #3137 by milos
If you are changing logo image with Flash, you would need to change
Code:
<a href="index.php"><img src="<?php echo $template_path ?><?php if($transparentImage=="white") { echo "black"; }else{ echo "white"; } ?>.swf" width="980" height="150" alt="joomla restaurant template" /></a>

with Flash object tag. But Flash size must be identical as logo image size. In your code you have 2 different sizes, first width="980" and later width="200"?!

Please find somebody experienced with Flash to help you.

Please Log in to join the conversation.


  • Topic Author
  • Visitor
  • Visitor
14 years 2 months ago - 14 years 2 months ago #3138 by
thanks- still had typo on earliest post with the width... just wanted to make sure that is where i would put the flash scripting in the index.php...

so this is right?

<a href="index.php"><img src="<?php echo $template_path ?>

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="download.macromedia.com/pub/shockwave/ca...rsion=6,0,40,0" width="980" height="150" align="left"><param name="width" value="980" /><param name="height" value="150" /><param name="align" value="left" /><param name="src" value="images/logo_white.swf" /><embed type="application/x-shockwave-flash" width="980" height="140" align="left" src="images/logo_white.swf"></embed></object>

<?php if($transparentImage=="white") { echo "black"; }else{ echo "white"; } ?>.swf" width="980" height="150" alt="joomla restaurant template" /></a>


trey
Last edit: 14 years 2 months ago by .

Please Log in to join the conversation.

  • ian
    Inactive member
  • New Member
  • New Member
More
13 years 10 months ago #6006 by ian
Hi Trey

Did you ever figure out how to embed a swf flash header in place of logo_white.png?

I have tried to replace the code in index.php with what you suggested to no avail.

I have placed logo_white.swf under templates/hotsportal/images and also edited the templates/hotsportal/css/layout.css to increase height of .header

Cheers
Ian

PS
Anyone elses help would also be appreciated.

Please Log in to join the conversation.

Time to create page: 0.093 seconds
Powered by Kunena Forum