Not signed in (Sign In)

Categories

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorrwahh
    • CommentTimeAug 12th 2005
     # 1
    i'd like to use the exisiting "hideelement(blah,blah)" javascript vanilla already has included to hide/show the "whisper your comments to" box.... but i can't find where in the code this block of html is rendered! can anyone help?
    •  
      CommentAuthorMark
    • CommentTimeAug 12th 2005
     # 2
    which block of html are you talking about?

    The HideElement function is pretty simple:

    function HideElement(ElementID, ClearElement) {
    var Element = document.getElementById(ElementID);
    if (Element) {
    Element.style.display = "none";
    if (ClearElement == 1) ClearContents(Element);
    }
    }


    It finds any element in the page by it's ID and makes hit display: none. It also optionally clears the innerHtml out of the element.

    So, to make it work you'd just need to set up a link and then name the id of the element you want hidden. So, for example, if you wanted to hide the menu tabs, you'd do this:

    <a href="javascript:HideElement('MenuForum',0)">Hide the menu!</a>
    • CommentAuthorrwahh
    • CommentTimeAug 13th 2005
     # 3
    ya... that's the one... i understand the javascript... i just don't know where to use it.... i.e. i don't know where the html for the "whisper comments to" input text is rendered.....
Add your comments
    Username Password
  • Format comments as