simplemenu.js 549 B

123456789101112131415161718
  1. // $Id$
  2. $(document).ready(function() {
  3. // get the Drupal basepath
  4. var basePath = Drupal.settings.simplemenu.basePath;
  5. // insert extra <br /> so menu doesn't overlap theme
  6. $('<ul id="simplemenu" class="clear-block"></ul>').prependTo('body');
  7. $('body').css('margin-top', '23px');
  8. // Drupal menu callback
  9. $('#simplemenu').load(basePath + 'simplemenu/menu', function() {
  10. $('li', this).hover(function() {
  11. $('ul', this).slideDown(200);
  12. }, function() {});
  13. $('a', this).title('');
  14. });
  15. });