Results 1 to 2 of 2

Thread: Javascript errors

  1. #1
    Join Date
    Dec 2007
    Posts
    14

    Default Javascript errors

    Im trying to use the code below on my header, to disable the link details from status bar but i get an error. on the page when i reload to see if it works.
    Code:
    <script>
    
    //Hide status bar msg II script- by javascriptkit.com
    //Visit JavaScript Kit (http://javascriptkit.com) for script
    //Credit must stay intact for use
    
    function hidestatus(){
    window.status=''
    return true
    }
    
    if (document.layers)
    document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
    
    document.onmouseover=hidestatus
    document.onmouseout=hidestatus
    </script>
    Fatal error: Smarty error: [in header.tpl line 16]: syntax error: unrecognized tag: window.status='' return true (Smarty_Compiler.class.php, line 446) in /home/chiqflix/public_html/include/smarty/libs/Smarty.class.php on line 1095
    Is there a way i can add this without getting this error?

  2. #2
    Join Date
    Apr 2007
    Posts
    2,202

    Default Re: Javascript errors

    Use {literal}

    More details available at

    http://www.smarty.net/manual/en/languag ... iteral.php

Similar Threads

  1. javascript translation
    By andreaa in forum Template Modifications
    Replies: 4
    Last Post: 12-26-2008, 10:31 PM
  2. Iframe and Javascript
    By mevaser in forum General Discussions
    Replies: 5
    Last Post: 01-11-2008, 10:15 PM
  3. How to use css/javascript version 6
    By olrac in forum General Discussions
    Replies: 0
    Last Post: 12-24-2007, 11:03 PM
  4. Trying to implement JavaScript
    By grynmoors in forum General Discussions
    Replies: 0
    Last Post: 12-06-2007, 07:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •