From 1ed6151591dad43d55f839e87175c2808f99647b Mon Sep 17 00:00:00 2001 From: Ted Serbinski Date: Wed, 10 Jan 2007 06:13:00 +0000 Subject: [PATCH] smooth initial loading of menu, thanks to craq for the tip --- simplemenu.css | 1 + simplemenu.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/simplemenu.css b/simplemenu.css index 20ece7bb..08e3d0e3 100644 --- a/simplemenu.css +++ b/simplemenu.css @@ -17,6 +17,7 @@ left:0; position:static; top:0; width:100%; +height:22px; } ul#menubar li { diff --git a/simplemenu.js b/simplemenu.js index d4f3cfa3..90c48ae8 100644 --- a/simplemenu.js +++ b/simplemenu.js @@ -5,7 +5,7 @@ $(document).ready(function() { var basePath = Drupal.settings.menu_bar.basePath; // insert extra
so menu doesn't overlap theme - $('body').prepend(''); + $('').prependTo('body').slideDown(400); // Drupal menu callback $('#menubar').load(basePath + 'menu_bar/menu', function() {