Hi John, I had a question about the templates and using script, tokens and strings. I have a menu working using the page icons and this work with the onmouseover and onmouseout which will replace the menu icon with an "on" version to produce a rollover effect. This works well, but i want to be able to have the "on" version of the icon set when it's the active tab. Im trying to use an IFF statement which is working but i'm struggling to think of a way to do it:
iif({Tab.IsActive}='True',{ActivePage},{Tab.IconFile})
I thought i could have a string, {ActivePage}, contain the iconfile name but using tokens in the javascript doesn't seem to work - is this by design or not? If tokens in the javascript were parsed then i think i could then work out a way to do it, unless you already know of a way? Thanks, Dan. |