X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Alternating Colours / Whatever (https://forum.x-cart.com/showthread.php?t=12256)

ian_fs 02-18-2005 03:36 AM

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

Lucent88 03-06-2006 02:27 PM

how do I do this to the feature comparison details?


All times are GMT -8. The time now is 06:48 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.