SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: DIV Visibilty

Hybrid View

  1. #1
    SitePoint Guru moonman's Avatar
    Join Date
    Dec 2000
    Location
    The Sea of Tranquility
    Posts
    696
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    DIV Visibilty

    Hi

    I'm using this script from Dynamic Drive for my menu system.

    At the moment, if you open one menu, it closes all others. Basically I want to disable this, but my javascript is rubbish.

    Can anyone help me please!!

  2. #2
    SitePoint Wizard silver trophy
    Join Date
    May 2003
    Posts
    1,843
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this...
    Code:
    function SwitchMenu(obj){
    	if(document.getElementById){
    	var el = document.getElementById(obj);
    		if(el.style.display != "block"){
    			el.style.display = "block";
    		}else{
    			el.style.display = "none";
    		}
    	}
    }
    ::: certified wild guess :::

  3. #3
    SitePoint Guru moonman's Avatar
    Join Date
    Dec 2000
    Location
    The Sea of Tranquility
    Posts
    696
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You sir, are a genius!

    Thank you very much


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •