Trying to add the following code to make a Flash Accordian type menu for the top of the dialog on the home page.
I added this to the service_head.tpl file but I get a smarty error for the line
var flashvars = {};
Code:
<script type="text/javascript" src="
js/swfobject.js"></script>
<script type="text/javascript">
var stageW = 565;
var stageH = 200;
var cacheBuster = Date.parse(new Date());
var flashvars = {};
var params = {};
params.bgcolor = "#efefef";
params.allowfullscreen = "true";
flashvars.stageW = stageW;
flashvars.stageH = stageH;
flashvars.xmlPath = "accordion.xml";
flashvars.keepSelected = "t";
flashvars.selectedWindow = "4";
flashvars.slideshow = "t";
flashvars.imageWidth = "300";
flashvars.imageHeight = "200";
swfobject.embedSWF("preview.swf?t="+cacheBuster, "myContent", stageW, stageH, "9.0.124", "js/expressInstall.swf", flashvars, params);
</script>
It loads fine in a basic html file but for some reason I am struggling to get this working in X-cart.
Can anyone suggest anything?