diff -r 000000000000 -r 1450b09d0cfd ginebra2/chrome/demochrome/ChromeExplorer/menu-collapsed.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ginebra2/chrome/demochrome/ChromeExplorer/menu-collapsed.js Tue May 04 12:39:35 2010 +0300 @@ -0,0 +1,43 @@ +/* + Simple JQuery Collapsing menu. + HTML structure to use: + + + +Copyright 2007 by Marco van Hylckama Vlieg + +web: http://www.i-marco.nl/weblog/ +email: marco@i-marco.nl + +Free for non-commercial use +*/ + +function initMenu() { + $('#menu ul').hide(); + $('#menu li a').click( + function() { + $(this).next().slideToggle('normal'); + return false; // return false to prevent the view from scrolling to the top of the page. + } + ); + } +$(document).ready(function() {initMenu();}); \ No newline at end of file