/[drupal]/contributions/modules/nice_menus/nice_menus.js
ViewVC logotype

Contents of /contributions/modules/nice_menus/nice_menus.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.17 - (show annotations) (download) (as text)
Tue Mar 24 16:22:28 2009 UTC (8 months ago) by add1sun
Branch: MAIN
CVS Tags: HEAD
Changes since 1.16: +21 -46 lines
File MIME type: text/javascript
#322962: thanks to higherform and GiorgosK for testing. New feature to add configurable JS with Superfish.
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 });

  ViewVC Help
Powered by ViewVC 1.1.2