Quick Nav:  Online Store   |   Login | Register

Template files and scripts

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
koolworld
<50 Posts
Posts:40


06/05/2007 8:51 AM  

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.

John Mitchell
Posts:3478


06/06/2007 5:18 PM  
Having the Javascript parsed is a good idea. I have recently made a change that allows html both above and below the template, and it all gets parsed for the dynamic tokens.
You could even put inline styles in and have the background images change dynamically.

I also added a new feature that lets you put < head > tags in that html and the parser will automatically move anything in between the < head > tags from the template to the head section of the page. Useful for adding external links to CSS or JS.

I'm working on a bug right now, but send me an e-mail and I'll get you an update.
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >CSS NavMenu > Template files and scripts



ActiveForums 3.7
Powered by: Snapsis Software