![]() |
Banner Rotating Script - Smarty Error
I am trying to use this banner rotating script on my homepage, but I get a smarty error when inserting it into welcome.tpl. I haven't changed the images/links in the code because I just want to get it functioning first...
Can someone tell me what might be causing the smarty error in the following code? Code:
<script language="Javascript"> Thanks, Jeff |
Re: Banner Rotating Script - Smarty Error
Insert literal tags around the code like so:
Code:
{literal} |
Re: Banner Rotating Script - Smarty Error
Thanks Jon...that worked perfectly!
So are these {literal} tags necessary for any Javascript code? Jeff |
Re: Banner Rotating Script - Smarty Error
Javascript code often has tags such as brackets which smarty will try to interpret as smarty code, the literal tags says to take it literally and not parse it. In short, javascript doesn't always need the literal tags, but most often does.
|
All times are GMT -8. The time now is 09:28 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.