simplemenu.js 510 B

1234567891011121314151617
  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. // Drupal menu callback
  8. $('#simplemenu').load(basePath + 'simplemenu/menu', function() {
  9. $('li', this).hover(function() {
  10. $('ul', this).slideDown(200);
  11. }, function() {});
  12. $('a', this).title('');
  13. });
  14. });