On Tue, Jul 03, 2001 at 03:04:00PM -0400, [EMAIL PROTECTED] wrote:
> Can anyone tell me how to make a set of tabs and control the color of each
> tab?
>
> I'd like to do something like below, but it doesn't work...
>
> [% tabs = [
> { link => "script_name", text => 'pubclu02' , col=>'green'}
> { link => "script_name", text => 'usbke01' , col=>'red' }
> ]
> %]
> [% INCLUDE splash/tabset tablocate='center' %]
>
> or do i have to create each tab seperately?
Yep, I'm afraid so, but it's not hard.
<table border="0" cellpadding="0" cellspacing="0">
<tr>
[% FOREACH tabs %]
<td>[% text WRAPPER splash/text col='white' WRAPPER splash/tab %]</td>
[% END %]
</tr>
</table>
HTH
A
--
Andy Wardley <[EMAIL PROTECTED]> Signature regenerating. Please remain seated.
<[EMAIL PROTECTED]> For a good time: http://www.kfs.org/~abw/