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

Help with adding a link to JUMP MENU

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-05-2006, 08:46 AM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default Help with adding a link to JUMP MENU

I have these lins of code below and woud like to put them in a jump menu so when they are clicked, they will automatically reference user to a page on the cart?
> I attached my 'original code' and the 'changes that I made' but notiing happened with my changed files when they are selected?


(my original code)
<A href="{pages_url var="page1" catid=$cat}">{$lng.lbl_page1}</A>
<A href="{pages_url var="page2" catid=$cat}">{$lng.lbl_page2}</A>
<A href="{pages_url var="page3" catid=$cat}">{$lng.lbl_page3}</A>
<A href="{pages_url var="page4" catid=$cat}">{$lng.lbl_page4}</A>



(what I changed)
<select name=categoryId>
<option value="" selected>Check these out!&nbsp;&nbsp;&nbsp;&nbsp;</option>
<option value="{pages_url var="page1" catid=$cat}">{$lng.lbl_page1}</option>
<option value="{pages_url var="page2" catid=$cat}">{$lng.lbl_page2}</option>
<option value="{pages_url var="page3" catid=$cat}">{$lng.lbl_page3}</option>
<option value="{pages_url var="page4" catid=$cat}">{$lng.lbl_page4}</option>
</select>
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #2  
Old 12-05-2006, 06:32 PM
 
balinor balinor is offline
 

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

Default Re: Help with adding a link to JUMP MENU

Well how does the form know to open a url when one of those options is selected? Do you have a form script to go with it?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 12-06-2006, 05:49 AM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default Re: Help with adding a link to JUMP MENU

no. Iam not quite sure what I should add?
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #4  
Old 12-06-2006, 06:07 AM
 
balinor balinor is offline
 

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

Default Re: Help with adding a link to JUMP MENU

Search Google for 'Jump Menu'. Here's an example:

http://javascript.internet.com/navigation/jump-menu.html
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 12-06-2006, 07:08 AM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default Re: Help with adding a link to JUMP MENU

Thanks iam checking it out.
Reply With Quote
  #6  
Old 12-06-2006, 07:11 AM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default Re: Help with adding a link to JUMP MENU

(In my example I had reference link like)
<A href="{pages_url var="page2" catid=$cat}">{$lng.lbl_page2}</A>

(but, on your site link it shows like)
<option value=http://javascript.internet.com>JSS</option>


How I do I adjust it to make it work?
__________________
x-cart 4.0.16v
linux server
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 03:29 PM.

   

 
X-Cart forums © 2001-2020