View Single Post
  #1  
Old 04-01-2010, 06:10 AM
 
Freakmode Freakmode is offline
 

X-Adept
  
Join Date: Jun 2003
Location: UK
Posts: 696
 

Default Adding a Flash Menu

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?
__________________
X-Cart 4.7.12 (Live)
Redux Template
CDSEO
Reply With Quote