I want to sent an array of different colours (6 or 7) for divs containing parent links in the main menu of a new website.
My knowledge of smarty is pretty low.
I'm pretty sure I've seen exactly what I'm trying to do here or on the smarty website quite a while ago.
Kinda thinking I've to use the cycle function as below:
Code: Select all
<div bgcolor="{cycle values="#eeeeee,#dddddd"}"></div>