Hey,
I've been playing around with http://nixboxdesigns.com/projects/jquery-lavalamp/ for a navigation menu on a new site I'm building and it works great with minimal fuss, I then started wondering if I could add some sub navigation options to the menu and set about building that in. The trouble I'm having is making the lavaLamp plugin ignore nested/child ul/li's.
You can see a live example of the issue here: http://www.weleasewodewick.com/redesign2 - hover over the 'Blog' li then over the submenu that pops in.
I won't post the full source for the plugins as it's pretty lengthy but you should be able to view them directly here:
lavaLamp jQuery Plugin
http://www.weleasewodewick.com/redesign2/includes/jquery.lavalamp.js
Menu Markup
<nav>
<article>
<ul>
<li><a href="#Home" alt="#">Root</a></li>
<li><a href="#About" alt="#">Who?</a></li>
<li><a href="#Projects" alt="#">Projects</a></li>
<li><a href="#Resume" alt="#">Blog</a>
<ul class='children'>
<li class="page_item page-item-18"><a href="http://localhost/wordpress/?page_id=18" title="History">History</a></li>
<li class="page_item page-item-13"><a href="http://localhost/wordpress/?page_id=13" title="Our Company">Our Company</a></li>
<li class="page_item page-item-15"><a href="http://localhost/wordpress/?page_id=15" title="Our Staff">Our Staff</a></li>
</ul>
</li>
<li><a href="#Resume" alt="#">Contact</a></li>
</ul>
</article>
</nav>
lavaLamp Activation
$(function() { $('nav>article>ul').lavaLamp(); });
Would really appreciate your input on this issue :)
** Purpose ** The final resting place of this mockup is a WordPress template, so the nested structure of the menu mostly needs to remain the same.
Much appreciated Foxed