new menu bar built with jquery

This commit is contained in:
Ted Serbinski
2006-09-18 21:54:19 +00:00
commit 44264836be
7 changed files with 268 additions and 0 deletions

17
simplemenu.js Normal file
View File

@@ -0,0 +1,17 @@
// $Id$
$(document).ready(function() {
// get the Drupal basepath
var basePath = Drupal.settings.menu_bar.basePath;
// insert extra <br /> so menu doesn't overlap theme
$('body').prepend('<ul id="menubar"></ul><br />');
// Drupal menu callback
$('#menubar').load(basePath + 'menu_bar/menu', function() {
$('li', this).hover(function() {
$('ul', this).slideDown(200);
}, function() { }
);
});
});