.tpl file getting a {/literal} error on my page

Discussion in 'Programming' started by drew68, Oct 26, 2011.

  1. #1
    hey guys...i'm getting this syntax error in my main.tpl file ...line 472 {/literal}

    when you first go to my site (http://thirtydayfreetrial.com/) you'll see the top middle area with the 5 slider thumbs and description. notice how the 1st one doesn't show clearly? and then it jumps to the 2nd slider.

    here's the code for that {literal} section...


    {* Javascript for tracking link clicks *}

    {if $StopLinkHits eq 0}

    <script type="text/javascript">

    /* <![CDATA[ */

    var root = '{$smarty.const.DOC_ROOT}';

    {literal}

    var a = document.getElementsByTagName("a");

    for(i = 0; i< a.length; i++)

    if(a.id != '')

    a.onclick = count_link;

    function count_link() {

    i = new Image();

    i.src= root+'/cl.php?id='+this.id;

    return true;

    }

    {/literal}

    /* ]]> */

    </script>

    {/if}


    can someone help point out what's causing that slider error or that {/literal} error?

    thanks-
    drew
     
    drew68, Oct 26, 2011 IP