Re: adding flash to the welcome.tpl
Hi Michael:
I took a look again, and what I was trying to do was include the banner.tpl inside the welcome text. Think that is not going to work, so I am trying the banner tpl code in directly but I think that needs modification since it is javascript.
Here is what I have done so far:
Literal tags don't seem to work
I simply added the js script, modified ("{$SkinDir} to skin1/ for path.
"Some" success: In Firefox I get the rotation, albeit the files are still distorted but nothing visible in IE. So, I think this is one step closer. I think the definitions for banner width, etc need to be done differently than below but I am not a programmer.
The assigned variables are not working so wonder how that can be achieved?
{*---------------------------------------*}
{* Set Banner Width *}
{assign var='bw' value='291'}
{*---------------------------------------*}
{* Set Banner Height *}
{assign var='bh' value='169'}
{*---------------------------------------*}
{* Set Minimum Flash Version *}
{assign var='fv' value='6'}
{*---------------------------------------*}
{* Set Background Colour *}
{assign var='bgc' value='#FFFFFF'}
{*---------------------------------------*}
<div id="banners"><a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank">Please click here to upgrade your Flash Player</a>. Please also turn on JavaScript.</div>
<script type="text/javascript">
var so = new SWFObject("{$SkinDir}/banners/banners.swf", "banners", "{$bw}", "{$bh}", "{$fv}", "{$bgc}");
so.addParam("menu", "false");
so.addParam("scale", "exactfit");
so.addParam("wmode", "transparent");
so.write("banners");
</script>
Connie
__________________
Versions 4.7.6
multiple mods and customizations
|