JQuery Hover li Show div which sits outside li structure
<p>I'm currently trying to create a "mega" dropout menu using JQuery but have encountered an issue I'm yet to be able to resolve.  At the moment I have the following HTML structure:</p>

<pre><code>&lt;div id="TopNav" class="grid_16"&gt;
    &lt;ul class="cmsListMenuUL level0" id="TopNavMenu"&gt;
        &lt;li class="cmsListMenuLIcmsListMenuLI highlightedLI" id="TopNavMenu_Home"&gt;&lt;a href="/"&gt;
            &lt;span class="text"&gt;Home&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;li class="cmsListMenuLIfirst" id="TopNavMenu_0_1"&gt;&lt;a href="/Key-Sectors.aspx" class="cmsListMenuLink"&gt;
            &lt;span class="text"&gt;Key Sectors&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;li class="cmsListMenuLI" id="TopNavMenu_0_2"&gt;&lt;a href="/Global-Brands.aspx" class="cmsListMenuLink"&gt;
            &lt;span class="text"&gt;Global Brands&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;li class="cmsListMenuLI" id="TopNavMenu_0_3"&gt;&lt;a href="/News---Features.aspx" class="cmsListMenuLink"&gt;
            &lt;span class="text"&gt;News &amp;amp; Features&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;li class="cmsListMenuLI" id="TopNavMenu_0_4"&gt;&lt;a href="/Videos.aspx" class="cmsListMenuLink"&gt;
            &lt;span class="text"&gt;Videos&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;li class="cmsListMenuLI" id="TopNavMenu_0_5"&gt;&lt;a href="/Events.aspx" class="cmsListMenuLink"&gt;
            &lt;span class="text"&gt;Events&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;li class="cmsListMenuLI" id="TopNavMenu_0_6"&gt;&lt;a href="/Key-Cities.aspx" class="cmsListMenuLink"&gt;
            &lt;span class="text"&gt;Key Cities&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;li class="cmsListMenuLI" id="TopNavMenu_0_7"&gt;&lt;a href="/Doing-Business-in-Yorkshire.aspx"
            class="cmsListMenuLink"&gt;&lt;span class="text"&gt;Doing Business in Yorkshire&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;li class="cmsListMenuLI" id="TopNavMenu_0_8"&gt;&lt;a href="/How-We-Can-Help.aspx" class="cmsListMenuLink"&gt;
            &lt;span class="text"&gt;How We Can Help&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;li class="cmsListMenuLI" id="TopNavMenu_0_9"&gt;&lt;a href="/Contact-Us.aspx" class="cmsListMenuLink"&gt;
            &lt;span class="text"&gt;Contact Us&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
&lt;/div&gt;
&lt;div class="sectorsDropped"&gt;
    &lt;div class="floatLeft leftColumn"&gt;
        &lt;div class="parentItem" style="border-color: #0064BE;"&gt;
            &lt;a href="/Key-Sectors/Advanced-Engineering---Materials.aspx" class="parentItemContent"&gt;
                Advanced Engineering &amp;amp; Materials&lt;/a&gt;&lt;div class="childItem"&gt;
                    &lt;a href="/Key-Sectors/Advanced-Engineering---Materials/Nuclear.aspx"&gt;- Nuclear&lt;/a&gt;&lt;/div&gt;
            &lt;div class="childItem"&gt;
                &lt;a href="/Key-Sectors/Advanced-Engineering---Materials/Logistics---Infrastructure.aspx"&gt;
                    - Logistics &amp;amp; Infrastructure&lt;/a&gt;&lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="parentItem" style="border-color: #FFB611;"&gt;
            &lt;a href="/Key-Sectors/Chemicals.aspx" class="parentItemContent"&gt;Chemicals&lt;/a&gt;&lt;/div&gt;
        &lt;div class="parentItem" style="border-color: #B7CC0B;"&gt;
            &lt;a href="/Key-Sectors/Environmental-Technologies.aspx" class="parentItemContent"&gt;Environmental
                Technologies&lt;/a&gt;&lt;div class="childItem"&gt;
                    &lt;a href="/Key-Sectors/Environmental-Technologies/Offshore-Wind.aspx"&gt;- Offshore Wind&lt;/a&gt;&lt;/div&gt;
            &lt;div class="childItem"&gt;
                &lt;a href="/Key-Sectors/Environmental-Technologies/Carbon-Capture---Storage.aspx"&gt;- Carbon
                    Capture &amp;amp; Storage&lt;/a&gt;&lt;/div&gt;
            &lt;div class="childItem"&gt;
                &lt;a href="/Key-Sectors/Environmental-Technologies/Tidal-Power.aspx"&gt;- Tidal Power&lt;/a&gt;&lt;/div&gt;
            &lt;div class="childItem"&gt;
                &lt;a href="/Key-Sectors/Environmental-Technologies/Biomass.aspx"&gt;- Biomass&lt;/a&gt;&lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="floatLeft rightColumn"&gt;
        &lt;div class="parentItem" style="border-color: #AC26AA;"&gt;
            &lt;a href="/Key-Sectors/Digital---New-Media.aspx" class="parentItemContent"&gt;Digital &amp;amp;
                New Media&lt;/a&gt;&lt;/div&gt;
        &lt;div class="parentItem" style="border-color: #e1477e;"&gt;
            &lt;a href="/Key-Sectors/Food---Drink.aspx" class="parentItemContent"&gt;Food &amp;amp; Drink&lt;/a&gt;&lt;/div&gt;
        &lt;div class="parentItem" style="border-color: #00c5b5;"&gt;
            &lt;a href="/Key-Sectors/Healthcare-Technologies.aspx" class="parentItemContent"&gt;Healthcare
                Technologies&lt;/a&gt;&lt;div class="childItem"&gt;
                    &lt;a href="/Key-Sectors/Healthcare-Technologies/Biotechnology.aspx"&gt;- Biotechnology&lt;/a&gt;&lt;/div&gt;
            &lt;div class="childItem"&gt;
                &lt;a href="/Key-Sectors/Healthcare-Technologies/Pharmaceuticals.aspx"&gt;- Pharmaceuticals&lt;/a&gt;&lt;/div&gt;
            &lt;div class="childItem"&gt;
                &lt;a href="/Key-Sectors/Healthcare-Technologies/Medical-Devices.aspx"&gt;- Medical Devices&lt;/a&gt;&lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="parentItem" style="border-color: #AC1A2F;"&gt;
            &lt;a href="/Key-Sectors/Financial---Professional.aspx" class="parentItemContent"&gt;Financial
                &amp;amp; Professional&lt;/a&gt;&lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>In normal circumstances the div containing the "mega" menu options would sit inside the li item that fires the show/hide but this is currently not possible as the ul list of navigation links is rendered using a 3rd party piece of software which does not provide an equivalent of an OnItemDataBound event for me to be able to inject the div into the item</p>

<p>Does anyone know of a way, using JQuery, of showing the div but maintain the display of the div as the mouse focus leaves the li that originaly displayed the div and actually enters the div?</p>

<p>I'm currently using the following JQuery which displays the div correctly but as the mouse focus enters the div the div then disappears as the mouse focus from the li has now moved:</p>

<pre><code>    $(document).ready(function() {

  function addMega(){
    $(".sectorsDropped").toggle("fast");
    }

  function removeMega(){
    $(".sectorsDropped").toggle("fast");
    }

var megaConfig = {
     interval: 500,
     sensitivity: 4,
     over: addMega,
     timeout: 500,
     out: removeMega
};

$("#TopNavMenu_0_1").hoverIntent(megaConfig)


});
</code></pre>

<p>Thanks</p>

<p>Dave</p>
