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

Alternating Colours / Whatever

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 02-18-2005, 03:36 AM
 
ian_fs ian_fs is offline
 

Advanced Member
  
Join Date: Apr 2004
Location: Norwich, UK
Posts: 86
 

Default Alternating Colours / Whatever

This is a really simple and useful Smarty function, which allows you to have alternating colours, or really anything that might need alternating.

Code:
{cycle values="#000000,#FFFFFF"}

or

Code:
{cycle values="#000000,#FFFFFF,#006699"}

or

Code:
{cycle values="style1,style2"}

eg.

<div class="{cycle values="style1,style2"}">...</div>

That simple. You can have as many colours, or what I did was use that in the class tag for different styles for product displays.


So background of products could go:-

Black

White

Black

White



I like to use it anyway.

Jez
__________________
X-Cart 4.0.17
Reply With Quote
  #2  
Old 03-06-2006, 02:27 PM
 
Lucent88 Lucent88 is offline
 

Senior Member
  
Join Date: Aug 2005
Posts: 147
 

Default

how do I do this to the feature comparison details?
__________________
X-Cart Gold 4.0.17
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 12:22 PM.

   

 
X-Cart forums © 2001-2020