Reply To: oldfashioned style: (sm-vertical-no-flyout) required

Home Forums Older releases 1.0.x oldfashioned style: (sm-vertical-no-flyout) required Reply To: oldfashioned style: (sm-vertical-no-flyout) required

#3095
admin
Keymaster

Hi,

I am not sure why you would need to use the script for such a basic functionality (that could actually be achieved easily without any JS at all) but here is something that should work as intended:

$(function() {
	var $menu = $('#main-menu');
	$menu.smartmenus({
		subMenusSubOffsetX: 1,
		subMenusSubOffsetY: -8,
		markCurrentItem: true,
		noMouseOver: true,
		hideOnClick: false
	});
	
	// show current sub menu on init
	$menu.smartmenus('itemActivate', $menu.find('a.current').eq(-1));
	
	// prevent activating any items
	$menu.bind('activate.smapi', function() { return false; });
});

Please let me know if you have any troubles.

Register

You will be emailed a link to set your password.

Login

Lost password?