PDA

View Full Version : Showing a script in a single section?


Skyrider
10-25-2010, 05:22 PM
I'm wanting to add a javascript which is only viewable in specific section(s). What code should I use and in which template should I add it? Help is much appreciated.

mikey1991
10-25-2010, 05:33 PM
<vb:if condition="$forum[forumid] == 9"><script>alert('put your js here')</script></vb:if>

Skyrider
10-25-2010, 08:50 PM
For some odd reason, it's not working :(.