Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Member Tristessa's Avatar
    Join Date
    Nov 2004
    Location
    Kingston, Ontario
    Posts
    94
    Member #
    8215
    I am creating a help section on a website and I decided to use div layers to show/hide the answers.

    My only problem is that I want the next question to go on top of the hidden layer. Then once the hidden layer is visable the next question would automatically move down.

    I saw this answer somewhere in google, but now I can't find it.


    If it helps, here is my code:

    Javascript Part

    function ShowHide(id, visibility) {
    obj = document.getElementsByTagName("div");
    obj[id].style.visibility = visibility;
    }


    HTML Part

    <a href="javascript:ShowHide('layerDiv','visible')">Q uestion Number 1?</a>
    <div id="layerDiv"><p>This is the answer <a href="javascript:ShowHide('layerDiv','hidden')">Cl ose Question</a></div>

    And of course, there are CSS properties, but I don't think I need to show my example on here.


    any help?
    thanks

  2.  

  3. #2
    Senior Member
    Join Date
    Aug 2003
    Posts
    444
    Member #
    2801
    Hey. We had a similar question recently:

    http://www.webdesignforums.net/showthread.php?t=18577

    Try that
    eKstreme
    eKstreme.com - Free website tools!
    fontfox - free fonts Hand-picked quality fonts.

  4. #3
    Member Tristessa's Avatar
    Join Date
    Nov 2004
    Location
    Kingston, Ontario
    Posts
    94
    Member #
    8215
    well .. I have the show/hide function working properly

    I just need to have the next question below the hidden layer occupy the space above. Then once the question is clicked on and the hidden layer is visible then the next question moves down.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 07:24 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com