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

funkycategories

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 01-20-2005, 03:31 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default

Quote:
It would be interesting to know how to make the menu display horizontal.

here you go...

Code:
{literal} <script language="JavaScript1.2"> function changeLoc(address){ window.location.href = address; } function onOver(td){ if(document.getElementById||(document.all && !(document.getElementById))){ td.style.backgroundColor="#009966"; td.style.cursor="hand"; } } function onOut(td){ if(document.getElementById||(document.all && !(document.getElementById))){ td.style.backgroundColor="#006633"; } } </script> {/literal} <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="funkycatsep"></td> </tr> </table> {if $config.General.root_categories eq "Y"} <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="1" class="funkycatsep">[img]{$ImagesDir}/null.gif[/img]</td> {section name=cat_num loop=$categories} <td class="funkycat" onMouseOver="onOver(this);" onMouseOut="onOut(this);" onClick="changeLoc('home.php?cat={$categories[cat_num].categoryid}');"><font color="#FFFF00">&raquo;</font>{$categories[cat_num].category}</td> <td width="1" class="funkycatsep">[img]{$ImagesDir}/null.gif[/img]</td> {/section} <td width="1" class="funkycatsep">[img]{$ImagesDir}/null.gif[/img]</td> </tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="funkycatsep"></td> </tr> </table> {else} <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="1" class="funkycatsep">[img]{$ImagesDir}/null.gif[/img]</td> {section name=cat_num loop=$subcategories} <td class="funkycat" onMouseOver="onOver(this);" onMouseOut="onOut(this);" onClick="changeLoc('home.php?cat={$subcategories[cat_num].categoryid}');"><font color="#FFFF00">&raquo;</font>{$subcategories[cat_num].category}</td> <td width="1" class="funkycatsep">[img]{$ImagesDir}/null.gif[/img]</td> {/section} <td width="1" class="funkycatsep">[img]{$ImagesDir}/null.gif[/img]</td> </tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="funkycatsep"></td> </tr> </table> {/if}
__________________
xcartmods.co.uk
Reply With Quote
  #12  
Old 01-20-2005, 11:11 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

Funkydunk is going to sue you!
Reply With Quote
  #13  
Old 01-20-2005, 12:41 PM
  CC's Avatar 
CC CC is offline
 

eXpert
  
Join Date: Jun 2004
Posts: 349
 

Default

Looking good.

We have our categories box working where it displays subcategories below the main, when a main category is selected.
The only problem I have found is I can not get this to work with that...

It just screws up the subcategory that displays once selected.

Otherwise this definately imprvies the look of XC.
__________________
XC 4.2 inc (unofficial) patch release.
Reply With Quote
  #14  
Old 01-21-2005, 05:08 PM
 
stryker898 stryker898 is offline
 

Senior Member
  
Join Date: Jan 2003
Posts: 113
 

Default

Great Mod...thanks for sharing!!

Have one question...easy thing but I'm inexperienced with Java coding. How would I make my font go dark when 'function onOver(td)'
I tried...
Code:
} function onOver(td){ if(document.getElementById||(document.all && !(document.getElementById))){ td.style.backgroundColor="#FFE8FF"; td.style.cursor="hand"; td.style.fontColor="#000000"; } }
but it didnt work...any ideas? Thanks
__________________
Never take life too seriously, cause none of us are getting out of here alive!
Reply With Quote
  #15  
Old 01-22-2005, 01:02 PM
 
manager manager is offline
 

Member
  
Join Date: Jul 2003
Posts: 16
 

Default

Greetings PhilJ

Mucho Respecto for your speedy reply,

I am unclear where to paste the code, you so generously posted. In truth; I wouldn't know where to start. Could you post some very brief instructions.
__________________
Regards Trev

x-cart gold version 4.0.10

It\'s nice to be important, but it\'s more important to be nice ! (Scooter circa 92)
Reply With Quote
  #16  
Old 03-28-2005, 07:37 AM
 
jkirkpatrick jkirkpatrick is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 193
 

Default

Hello,

Does anyone know how to make it so that when you click on the "Category" name it doesn't show the "subcategories.tpl" page? Instead I'd just like the user to stay on whatever page they're on but see the subcategories menu fold down.

Is this possible?

Thanks,
Jennifer
__________________
Jennifer Kirkpatrick
X-Cart Pro Version 4.4.1
AND
X-Cart Gold Version 4.1.9
Reply With Quote
  #17  
Old 04-13-2005, 07:58 PM
 
larrydavidow larrydavidow is offline
 

Advanced Member
  
Join Date: Feb 2005
Posts: 38
 

Default

Hi Jennifer

Are you using Fancy Categories? I think that's what you're saying... If it's not, I am

I'm using Funky Categories with Fancy Categories. By the way, Funky Categories is an AWESOME mod!! Works great!!

I'd like to know how to expand the fancy categories category when you click on a Funky Category link.

Larry
__________________
X-Cart Gold
4.5.4
Reply With Quote
  #18  
Old 04-14-2005, 08:08 AM
 
marian marian is offline
 

Senior Member
  
Join Date: Mar 2005
Posts: 103
 

Default Awesome!!!

Thank you for sharing this. I have a question. How do you get the sub-categories to display under the parent category in the menu? Like this one:
http://www.redleader.biz/xcart/home.php

Mine does not do that.
http://www.screentechstore.com/xcart/home.php

Thank You for a really nice mod and so easy too.

P.S. Edit to above post:
It looks like to get the subcategories to "drop" down below the main categorie you MUST have Fancy Categories installed. This is an add on that can be purchased from X-cart for 27.95

So disregard my question.
__________________
Xcart Gold 4.0.13
OS: Linux
Apache version: 1.3.33 (Unix)
PHP version: 4.3.11
MySQL version: 4.0.22-standard
Reply With Quote
  #19  
Old 04-14-2005, 08:12 AM
 
larrydavidow larrydavidow is offline
 

Advanced Member
  
Join Date: Feb 2005
Posts: 38
 

Default Re: Awesome!!!

Quote:
Originally Posted by marian
Thank you for sharing this. I have a question. How do you get the sub-categories to display under the parent category in the menu? Like this one:
http://www.redleader.biz/xcart/home.php

Mine does not do that.
http://www.screentechstore.com/xcart/home.php

Thank You for a really nice mod and so easy too.

That's done using Fancy Categories. It's the Icons template with Java turned off.

You can get Fancy Categories from http://www.x-cart.com/fancy_categories.html

It's worth the pennies...
__________________
X-Cart Gold
4.5.4
Reply With Quote
  #20  
Old 04-14-2005, 08:14 AM
 
larrydavidow larrydavidow is offline
 

Advanced Member
  
Join Date: Feb 2005
Posts: 38
 

Default

Still back to my original question...

Is there anyway to expand the fancy categories link when another link is clicked.

For example, go to http://www.redleader.biz/xcart/home.php

You'll see the "tabs" at the top of the page. Those are his categories. I want the drop downs on the left to expand the category when the tab up top is clicked.

Thanks

Larry
__________________
X-Cart Gold
4.5.4
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 09:05 PM.

   

 
X-Cart forums © 2001-2020