Quote:
Originally Posted by tommyneel
where exactly are these tags to be used? when i use them, anything after the opening literal tag does not show up on my page. does it go right before the <script> tag? where?
also, what should the path be for flash files? if i have the file in the folder /images, can i still point to it like i do with actual images using the
{$ImagesDir}
?
thanks and if anyone is using flash out there, please let me know how you're doing it.
much thanks.
|
It should be...
Code:
{literal}
<script language="javascript" type="text/javascript">
content of script goes here
</script>
The {$ImagesDir} will call a file from the skin1/images directory, not the images directory in the x-cart root folder.
I don't use flash, but here is how x-cart does it....
Code:
<object type="application/x-shockwave-flash" data="{$ImagesDir}/custom/flash_logo.swf" width="341" height="206" id="flash_logo" align="top">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="{$ImagesDir}/custom/flash_logo.swf" />
<param name="menu" value="false" />
<param name="loop" value="false" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="FlashVars" value="not_home_page={if $main eq "catalog" && $current_category.category eq ""}0{else}1{/if}&final_image={#FinalImage#}&company_name_path={$ImagesDir}/custom/company_name.swf&home_path={$current_location}/customer/home.php" />
<param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer" />
<param name="swLiveConnect" value="true" />
</object>