CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   JavaScript programming (http://www.codingforums.com/forumdisplay.php?f=2)
-   -   jQuery Accordion Menu hoverIntent Conflict (http://www.codingforums.com/showthread.php?t=287582)

gotsnow 02-13-2013 04:20 PM

jQuery Accordion Menu hoverIntent Conflict
 
I'm trying to get the accordion menu to stay open while viewing the child pages but I'm getting a conflict with the hoverIntent plugin. I'm trying to add these lines so the menu stays open (it works without the hoverIntent script but then the menu itself breaks)

I need to add something like this but I can't get it to work

Code:

// check URL for 'ezesiy'
myString = location.href.indexOf("ezesiy");

if (myString > 0) {
    // expand the UL below the LI containing that menu item
    $('a:contains("ezesiy")').parents('li').children('ul').slideDown('1500');
}

Check out the demo here: http://jsbin.com/ezesiy/10/edit


All times are GMT +1. The time now is 02:47 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.