3
Yep you can do that with Smarty.
In fact, you can randomize a list of words and Smarty will pick one randomly.
I use this technique in
hyperTheme V2You can see it in action on
http://www.hyperpod.net (just refresh a few times and you will see the colors change.
Here is an example:
<table cellspacing="0" cellpadding="0" bgcolor="#ffffff" style="margin-bottom:8px;">
<tr background="<{$xoops_imageurl}>images/hyperTheme_08.jpg"><td class="blockTitle"><img src="<{$xoops_imageurl}>images/<{randomize values="red,blue,green,orange,purple"}>_pill.jpg" alt="" /><{$block.title}>td>tr>
<tr><td style="padding:8px;"><{$block.content}>td>tr>
table>
You would have to add the smarty plugin for randomizer into the smarty plugins directory and distribute that with your theme, which is easy to do.
Best regards,
Daniel Hall / XOOPS Module Development & Theme Design
Free XOOPS Support >
My Wish List