X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   flashxml (https://forum.x-cart.com/showthread.php?t=60895)

roblen 09-14-2011 03:47 PM

flashxml
 
hello, I have spent way too much time trying to get a flash oblject to display in the header. using a simple slider from flashxml

i put the script in head directory enclosed with literal tags

It wont display. I was wondering if anyone had had success implementing this
thanks
Rob
4.1.12

totaltec 09-14-2011 04:42 PM

Re: flashxml
 
I have incorporated many flash objects, into many different xcart headers. Never had a problem with getting it to display. Sometimes transparent flash layers have to have some z-index assigned via css, but that's it.

Share the code you are using, and link to the site so we can see it, and we can help better.

roblen 09-15-2011 04:37 AM

Re: flashxml
 
Thank you for your reply. In the process of setting up the script to show you, I tried something that was not in flashxml documentation. At least not on the same section. when you move the script out of their directory, you need to set paths to the files. what they don't mention is that you need to incorporate this for both the xml file the swf file the path and js file..
Hope this helps someone.

### customer/home.tpl ###
{include file="meta.tpl" }
<link rel="stylesheet" type="text/css" href="{$SkinDir}/{#CSSFile#}" />
[[ flash head start ]]
{literal}
<script type="text/javascript" src="/flash_header/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.settingsXML = "http://www.domain.com/flash_header/settings.xml";
flashvars.folderPath = "http://www.domain.com/flash_header/";
var params = {};
params.scale = "noscale";
params.salign = "tl";
params.wmode = "transparent";
params.allowScriptAccess = "always";
params.allowFullScreen = "true";
var attributes = {};
swfobject.embedSWF("/flash_header/MediaSlideshowFX.swf", "DivMediaSlideshowFX", "800", "300", "9.0.0", false, flashvars, params, attributes);
</script>
{/literal}
[[ flash head end ]]

</head>


What i had to do wash add both below. I was only adding one or the other. in a trial and error process
flashvars.settingsXML = "http://www.domain.com/flash_header/settings.xml";
flashvars.folderPath = "http://www.domain.com/flash_header/";


All times are GMT -8. The time now is 09:55 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.