Show/Hide Dynamic List Menu

Discussion in 'JavaScript' started by koolsamule, Dec 21, 2009.

  1. #1
    Hi Chaps,

    I have a dynamic list menu:
    	<?php $currentCat = '';       
    	$first = true
    	;?>
    	<ul>  
    		<?php   
    		do {       
    		if ($currentCat != $row_rsCategory['catname']) {            
    		if (!$first) {                 
    		echo "\n</ul>\n</li>\n";            
    		}            
    		$currentCat = $row_rsCategory['catname'];            
    		?>      
    			<li><?php echo $row_rsCategory['catname']; ?>       
    				<ul>      
    				<?php }?>          
    					<li><?php echo $row_rsCategory['galleryname']; ?></li>          
    				<?php $first = false;  
    				} while ($row_rsCategory = mysql_fetch_assoc($rsCategory));  
    				?>   
    				</ul>   
    			</li>   
    	</ul>
    PHP:
    I've tried looking for a show/hide script, to toggle category names/gallery names, but could only find ones that have static menu options, and have failed to edit existing code to fit....any help or guidence would be appreciated!
     
    koolsamule, Dec 21, 2009 IP
  2. hdewantara

    hdewantara Well-Known Member

    Messages:
    540
    Likes Received:
    47
    Best Answers:
    25
    Trophy Points:
    155
    #2
    Could we have this "static" menu of yours,
    in HTML version (browser view of your menu).

    That might ease the process into "dynamic" menu,
    I guess.
     
    hdewantara, Dec 27, 2009 IP