View Full Version : Smooth Navigational Menu (v2.1)

05-25-2013, 12:04 PM
Update to - Smooth Navigational Menu (v2.0) (http://www.dynamicdrive.com/dynamicindex1/ddsmoothmenu.htm) - This recently updated script will break if used with jQuery 1.10+, or jQuery 2+, both of which were just recently released. Here's the updated script:


It also includes one new feature - When menus are repositioned due to being too close the the browser's right edge, they are given a class name of "repositioned". When they return to their normal position, this class name is removed.

Both these changes (repositioning, forward compatibility with jQuery 1.10+) are documented in the script file and need not be reflected on the demo page. But the version number should be bumped up to 2.1 in the page's main header.

05-29-2013, 05:58 PM
Cool, thanks John for the modifications, I'll get to updating the script very shortly. Just wondering, what are the new changes in the new versions of jQuery that cause incompatibility with the current version of DD Smooth Menu? I haven't had a chance to delve into all the changes yet.

05-29-2013, 07:46 PM
It's a little complicated. The actual change was in jQuery version 1.9, and was already patched and automatically applied in Smooth Menu for any jQuery mathematically greater than 1.8.x. But using only math, version 1.10 is less than version 1.8, so this update to Smooth Menu simply uses a means test in applying the already existing patch, which is for reinstating the discontinued click toggle function. This has the added benefit of detecting any other patch (like jQuery Migrate) already applied that might take care of this. If the capability is already there, this patch is skipped.

For more info on its removal from jQuery, check: http://jquery.com/upgrade-guide/1.9/#toggle-function-function-removed

06-21-2013, 06:45 PM
Sorry for the delay John, just updated the script to v2.1. I'll probably be looking at making the menu more responsive for mobile screens next.