Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Adding a Flash Menu

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
  #2  
Old 04-01-2010, 06:37 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,052
 

Default Re: Adding a Flash Menu

Try some {literal} tags {/literal} around it.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote

The following user thanks pauldodman for this useful post:
01bodyjewellery (04-02-2010)
  #3  
Old 04-02-2010, 01:23 AM
 
Freakmode Freakmode is offline
 

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

Default Re: Adding a Flash Menu

Thanks Paul - that worked great - must try to remember this stuff!!
__________________
X-Cart 4.7.12 (Live)
Redux Template
CDSEO
Reply With Quote
  #4  
Old 04-28-2010, 05:29 PM
 
cosy cosy is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 79
 

Default Re: Adding a Flash Menu

HI,

I like the idea, Can you share this with us?

Thanks,
__________________
Version 4.2.0
Testing v 4.4
Reply With Quote
  #5  
Old 04-29-2010, 12:01 AM
 
Freakmode Freakmode is offline
 

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

Default Re: Adding a Flash Menu

Its not so much for a menu system as a rotating product banner running via XML

You can see it working on the home page at www.jobananas.com
__________________
X-Cart 4.7.12 (Live)
Redux Template
CDSEO
Reply With Quote
  #6  
Old 04-29-2010, 01:52 AM
 
cosy cosy is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 79
 

Default Re: Adding a Flash Menu

HI,
'
it is very nice so how do i find or get that banner?

Thanks,
__________________
Version 4.2.0
Testing v 4.4
Reply With Quote
  #7  
Old 04-30-2010, 01:56 AM
 
anandnadaar anandnadaar is offline
 

Newbie
  
Join Date: Apr 2010
Posts: 5
 

Default Re: Adding a Flash Menu

Hi "01bodyjewellery"

I would really appreciate if you can tell how did you do the image hover work ?
Did you buy any module for that ? if yes than please let me know which.
I tried doing it with some other technique but for only the first image appears on mouseover throughout the category list.

Please reply!

Regards,
Anand
__________________
X-Cart Gold: 4.3.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:37 AM.

   

 
X-Cart forums © 2001-2020