12345678910111213141516171819202122232425262728293031 |
- // $Id$
- $(document).ready(function() {
- // get the Drupal basepath
- var basePath = Drupal.settings.simplemenu.basePath;
- // get the element to add the menu to
- var element = Drupal.settings.simplemenu.element;
- var menu = '<ul id="simplemenu" class="clear-block"></ul>';
-
- switch (Drupal.settings.simplemenu.placement) {
- case 'prepend':
- $(menu).prependTo(element);
- break;
- case 'append':
- $(menu).appendTo(element);
- break;
- case 'replace':
- $(element).html(menu);
- break;
- }
-
- $('body').css('margin-top', '23px');
-
- // Build menu
- $('#simplemenu').append(simplemenu);
- $('#simplemenu li').hover(function() {
- $('ul', this).slideDown(200);
- }, function() {});
- $('#simplemenu a').title('');
- $('#simplemenu').children('li.expanded').addClass('root');
- });
|