Results 1 to 3 of 3

Thread: Multi-state node on switch menu

  1. #1
    Join Date
    Feb 2008
    Posts
    10
    Thanks
    0
    Thanked 1 Time in 1 Post

    Question Switch Menu 1: Adding multi-open node + state save

    1) Script Title:
    Switch Menu 1

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...switchmenu.htm

    3) Describe problem:
    --1) need more than node to be able to be open at any given time
    --2) need the states of all open/closed nodes to be saved, not just one

    Thank you very much for your time and efforts
    Last edited by scrupul0us; 03-01-2008 at 06:48 PM.

  2. #2
    Join Date
    Feb 2008
    Posts
    10
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    i got this to work to allow multi-open-nodes:

    Code:
    function SwitchMenu(obj){
    	if(document.getElementById){
    	var el = document.getElementById(obj);
    	var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
    		if(el.style.display != "block"){ //DynamicDrive.com change
    			/*
    			for (var i=0; i<ar.length; i++){
    				if (ar[i].className=="submenu") //DynamicDrive.com change
    				ar[i].style.display = "none";
    			}
    			*/
    			el.style.display = "block";
    		}else{
    			el.style.display = "none";
    		}
    	}
    }
    but i have no idea how to save the extra node states or recall them

    please help

  3. #3
    Join Date
    Feb 2008
    Posts
    10
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Cmon... anyone... not even a comment in over a month!

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
  •