Hey thanks for your reply. I am editing custom/service_head.tpl and this is the code:
Code:
{*
$Id: service_head.tpl,v 1.8 2008/12/05 12:54:17 joy Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
<title>{$html_page_title|escape}</title>
{include file="customer/meta.tpl"}
{include file="customer/service_css.tpl"}
{if $config.SEO.clean_urls_enabled eq "Y"}
<base href="{$catalogs.customer}/" />
<script src="{$SkinDir}/anchor_fix.js" type="text/javascript"></script>
{/if}
{literal}
<script type="text/javascript" src="../banner/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.settingsXML = "../banner/settings.xml";
var params = {};
params.scale = "noscale";
params.salign = "tl";
params.wmode = "transparent";
var attributes = {};
swfobject.embedSWF("../banner/banner.swf", "flashbanner", "792", "142", "9.0.0", false, flashvars, params, attributes);
</script>
{/literal}
swfobject.embedSWF takes the following parameters: file, div class name (requires <div class="flashbanner"></div> somewhere), width, height, etc. In customer/home.tpl I have the flashbanner class. It works on a regular html file, however I can't get it to work with home.tpl. I did what you said and I wrapped the literal tags around my javascript in the service_head.tpl template which fixed it changing my javascript (I think, I hadn't noticed it in the first place). But it still won't put the swf into the div. The directories work just fine, I don't understand.