Fresh from the Joomla! forum entitled, Using Flash Banner with Joomla. Need Help ASAP by wasexton
Even though the title says, Flash banner with Joomla! but as the code suggests it is more on “Using SWF in your Joomla! Header” kind of thing. Please review the code below:
<?php
if ( $_REQUEST[‘option’] == “com_frontpage” )
{
?>
<object type=”application/x-shockwave-flash”
data=”<?php echo $mosConfig_live_site;?>/templates/your_template/images/Banner.swf”
width=”778″ height=”145″>
<param name=”movie”
value=”<?php echo $mosConfig_live_site;?>/templates/your_template/images/Banner.swf” />
<img src=”<?php echo $mosConfig_live_site;?>/templates/your_template/images/Banner.jpg”
width=”778″ height=”145″ alt=”Banner Name” />
</object>
<?php
}
else
{
?>
<img src=”<?php echo $mosConfig_live_site;?>/templates/your_template/images/Banner.jpg” width=”778″>
<?php
}
?>
Note: The code stated above is embedded in the index.php located inside the name_of_template directory.
Results:
Some say, “the code didn’t help” and some say, “it works!”
Me?
A moving thing in my website header is not a bad idea. But not an option at this moment, maybe someday.
Filed under: J!Forum Monitor, Joomla!, embed, Flash, Joomla!, swf
Interaction – SS