i made a webz pagi.

Out of context: Reply #25

  • Started
  • Last post
  • 25 Responses
  • dMullins0

    Simple enough really, just requires a little more CSS work on your side, and a show/hide js:

    var isOpen;

    function show_or_hide(container) {
    myContainer = document.getElementById(containe...
    for(var n = 1; n <= NUMBEROFCONTAINERS n++) {
    myBlock = 'block' + n;
    myBlock = document.getElementById(myBlock...
    myBlock.className = '';
    }
    myContainer.className = 'show';
    if(isOpen == container) {
    myContainer.className = '';
    isOpen = null;
    } else {
    isOpen = container;
    }
    }

    A little redundant, but that should give you a good idea of how to get started.

    I really like your work too, man! Keep on rockin'.

View thread