Return to Snippet

Revision: 14400
at June 2, 2009 17:00 by karindalziel


Initial Code
Event.observe(window, 'load', function() {
      $('repository_list').hide();
	  $('genre_list').hide();
	  $('collection_list').hide();
	});

function toggleIt(type){
   $(type).toggle();
   if($(type).visible()){
            $(type + '_a').update('(-)');
        } else {
            $(type + '_a').update('(+)');
        }
   
}

Initial URL

                                

Initial Description
Used to make a show/hide nagigation w/ prototype js framework

HTML looks like: 

	<h3><a href="#">Repository <span>(+)</span> </a></h3>
	<ul>

Initial Title
Prototype: show hide navigation with

Initial Tags

                                

Initial Language
JavaScript