#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Location
    TX
    Posts
    38
    Rep Power
    14

    Question


    Situation:
    -I have created an dhtml page that other than the menu the contents are hidden untill you click a menu item.
    -The menu is like that on www.microsoft.com.

    My delima:
    -I want the menu item's contents to do the following when clicked
    -display the hidden contents within the specificed div location within the html document.


    Any ideas on this or a reference you can point me to?

    Thanks, Explore
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2001
    Posts
    3
    Rep Power
    0

    Talking i hope this helps


  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2001
    Posts
    6
    Rep Power
    0
    Just have a function that is called by the buttons that accepts a parameter (div ID) and let the function control the rest.

    ie;

    <a href="javascript:void(0)" onClick="showDiv('aboutUs')">


    the script would look something like:

    function showDiv(divID){
    eval(theDiv).visibility = "visible";
    }

    you gotta do the other logic that will hide the other divs, and make it work for netscape and so on, but thats how you would go about that.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Location
    TX
    Posts
    38
    Rep Power
    14

    Smile


    Thanks all! I got it

IMN logo majestic logo threadwatch logo seochat tools logo