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

WYSIWYG menu

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-13-2005, 11:52 AM
 
sunny sunny is offline
 

Advanced Member
  
Join Date: Mar 2005
Location: Lakewood, Colorado
Posts: 38
 

Default WYSIWYG menu

Hello out there,

Just starting working on the templates for x cart and have read most of the mail and can't find this specifically addressed. I have a pop-up menu that was done in Dreamweaver ala WYSIWYG. I tried putting the literal tags around the javascript, crossing my fingers and hoping it would work - but no go.

Does the menu need to be written in pure Javascript in order to work or are there any kind of changes I can make to the Dreamweaver code?

I think I can do the Javascript, but can't afford to do something I don't have to.

Thanks,

Sunny
__________________
4.1.9
Reply With Quote
  #2  
Old 03-14-2005, 04:40 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

If you are talking about the standard Javascript Dreamweaver creates for rollover images, etc., you have to put the JavaScript in the head of your home.tpl file, not just plop it in where you want the menu to appear
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 03-14-2005, 09:19 AM
 
sunny sunny is offline
 

Advanced Member
  
Join Date: Mar 2005
Location: Lakewood, Colorado
Posts: 38
 

Default

Hi,

Now this is starting to make sense to me. I'm a little slow on the uptake. I cut and pasted the code to the header. Still a no go. This is actually a pop up menu. There is one line of code that was in the body when the menu is created, it is:

<script language="JavaScript1.2">mmLoadMenus();</script>

I have tried putting this in the body of home.tpl with {literal}{/literal} tags around it . Tried moving it into the head of home.tpl and tried just leaving it in the head.tpl but nothing seems to be working. Any other suggestions?

Thanks for your help.

Sunny
__________________
4.1.9
Reply With Quote
  #4  
Old 03-14-2005, 11:39 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Just follow the placement of the script in the sample page you created. Move the stuff in the head, to the head of home.tpl. Move the stuff in the body to the body of home.tpl. Use literal quotes around each piece of code.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 03-14-2005, 02:05 PM
 
sunny sunny is offline
 

Advanced Member
  
Join Date: Mar 2005
Location: Lakewood, Colorado
Posts: 38
 

Default

No, it still won't show. Does anything in how the script is called need to be changed to fit in with smarty or php? This is the code attached to the image that the MouseOver event should show the pop up menu:

<td>[img]{$ImagesDir}/products.gif[/img]</td>

That code is in the head.tpl file with the image. Is there anywhere else that something should be changed?

Thanks,

Sunny
__________________
4.1.9
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 01:56 PM.

   

 
X-Cart forums © 2001-2020