gazingus.org - DOM-Scripted Lists, Revisited
gazingus.org - DOM-Scripted Lists, Revisited. Takes an unordered list and makes it collapsible via JavaScript. No inline JavaScript needed (not even body onload=...
) - just include the .js file in your page and flag the lists you want to apply this to. For loading the event when the page loads it uses the method described by Simon Willison - Executing JavaScript on page load.
Edit (12:50): Kae Verens also has something similar on his blog - collapsible menus updated
Tags: Web Developer Blog, JavaScript, DOM
Comments