| 1 |
// $Id: nice_menus.js,v 1.16 2008/08/04 23:45:22 add1sun Exp $
|
| 2 |
|
| 3 |
// This uses Superfish 1.4.8
|
| 4 |
// (http://users.tpg.com.au/j_birch/plugins/superfish)
|
| 5 |
|
| 6 |
// Add Superfish to all Nice menus with some basic options.
|
| 7 |
$(document).ready(function() {
|
| 8 |
$('ul.nice-menu').superfish({
|
| 9 |
// Add the legacy hover class added for IE.
|
| 10 |
hoverClass: 'ie-over',
|
| 11 |
// Disable generation of arrow mark-up.
|
| 12 |
autoArrows: false,
|
| 13 |
// Disable drop shadows.
|
| 14 |
dropShadows: false,
|
| 15 |
// Mouse delay.
|
| 16 |
delay: Drupal.settings.nice_menus_options.delay,
|
| 17 |
// Animation speed.
|
| 18 |
speed: Drupal.settings.nice_menus_options.speed
|
| 19 |
});
|
| 20 |
// Add in Brandon Aaron’s bgIframe plugin for IE select issues.
|
| 21 |
// http://plugins.jquery.com/node/46/release
|
| 22 |
$('ul.nice-menu').superfish().find('ul').bgIframe({opacity:false});
|
| 23 |
});
|