Return to Snippet

Revision: 802
at August 9, 2006 12:13 by leoh


Initial Code
function changeDiv(wdiv) {
	thediv = document.getElementById(wdiv);
	if(thediv.className == 'folderclosed'){
		thediv.className = 'folderopen';
	} else if (thediv.className == 'folderopen'){
		thediv.className = 'folderclosed';	
	}
}

Initial URL

                                

Initial Description

                                

Initial Title
div class changer

Initial Tags
js, class

Initial Language
JavaScript