Small help with expand/collapse form needed

Discussion in 'HTML & Website Design' started by mickscool, Nov 3, 2007.

  1. #1
    Hi Friends,
    I have this piece of code where a user clicks "show form" and a form shows up,and when the user clicks "hide" form,the form hides.I want to always show the form and remove this show/hide option. Here's the code:
    ****************************************************************
    <div id="collapsed" class="usrcomment">
    <div class="expand-collapse"><a onMouseOver="this.style.cursor='pointer'" onMouseOut="this.style.cursor='default'" onClick="return mxfunc('expanded', 'collapsed')">SHOW_FORM</a></div>
    </div>

    <div id="expanded" class="usrcomment-expand">
    <div class="expand-collapse"><a onMouseOver="this.style.cursor='pointer'" onMouseOut="this.style.cursor='default'" onClick="return mxfunc('collapsed', 'expanded')">HIDE_FORM</a></div>

    ****************************************************************
    Can someone please help me. Basically, i want to take out this "return mxfunc('expanded', 'collapsed')" out of the onClick action and show it directly.

    Please help guys...
     
    mickscool, Nov 3, 2007 IP