How to use this onclick event in php/html

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Interdit
    Senior Member
    • May 2002
    • 248
    • 3.8.x

    How to use this onclick event in php/html

    Hi,

    I'm trying to echo a template from one of my own table but i have a script problem in internet explorer and the collapsing function is not working:

    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" valign="top"><tr><td class="tcat" width="100%"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('menu')"><img id="collapseimg_menu" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_menu].gif" alt="" border="0" /></a>
    Menu
    </td>
    </tr>


    Where do i need to put the \ around to make the javascript working,

    Thanks,
    Best regards,

    Interdit
    BPowers.com: Eu Web Hosting Solutions
    Shared hosting with Cpanel/Fantastico
    Live Help: http://www.bpowers.com
  • Interdit
    Senior Member
    • May 2002
    • 248
    • 3.8.x

    #2
    Why does this line: onclick="return toggle_collapse('menu')">

    Doesn't eval correctly ? do i need to put \ ?

    Thks,

    Francois
    BPowers.com: Eu Web Hosting Solutions
    Shared hosting with Cpanel/Fantastico
    Live Help: http://www.bpowers.com

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...