<div dir="ltr">actually I need more like an animated click expand<br><br><div class="gmail_quote">On Sun, Jun 5, 2011 at 10:27 PM, Blake Senftner <span dir="ltr">&lt;<a href="mailto:bsenftner@earthlink.net">bsenftner@earthlink.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word">Have you had a look at the jquery menu module to see how it&#39;s handled there?<div>
<a href="http://drupal.org/project/jquerymenu" target="_blank">http://drupal.org/project/jquerymenu</a></div><div><br><div><div>
<span style="font-family:Helvetica;font-size:12px"><div style="word-wrap:break-word"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div>
<font face="Arial"><span style="font-size:medium"><font face="Helvetica" size="3"><span style="font-size:12px"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3"><font color="#0000FF">Sincerely,</font></font></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3"><font color="#0000FF">-Blake Senftner</font></font></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<font color="#0000FF"><br></font></div></span></font></span></font></div></span></div></span>
</div><div><div class="h5">

<br><div><div>On Jun 4, 2011, at 7:40 PM, Pooya wrote:</div><br><blockquote type="cite"><div dir="ltr"><div><div><div><span>Ok I&#39;m trying to use a simple jquery plugin for my menu, it&#39;s like accordion for menus but simpler. When you click on and parent item, submenus expand horizontal.<br>

</span></div><div><span><br></span></div><div><span>this is how firebug inspects menus(it&#39;s just 2 menus here with 1 submenu):<br>
</span></div><div><span><br></span></div><div><span>- &lt;<span>div</span><span> <span>class</span>=&quot;<span>content</span>&quot;</span><span>&gt;</span></span></div>
<div><div><div style="margin-left:40px"><span>- &lt;<span>ul</span><span> <span>class</span>=&quot;<span>menu</span>&quot;</span><span>&gt;</span></span></div>
<div><div><div style="margin-left:80px"><b><span>- &lt;<span>li</span><span> <span>class</span>=&quot;<span>expanded first active-trail</span>&quot;</span><span>&gt;</span></span></b></div>
<div><div style="margin-left:120px"><div><span>+ &lt;<span>a</span><span> <span>class</span>=&quot;<span>active</span>&quot;</span><span> <span>title</span>=&quot;&quot;</span><span> <span>href</span>=&quot;<span>/rouzdarou/</span>&quot;</span><span>&gt;</span></span></div>

</div><div><div style="margin-left:120px"><span>- &lt;<span>ul</span><span> <span>class</span>=&quot;<span>menu</span>&quot;</span><span> <span>style</span>=&quot;<span>display: block;</span>&quot;</span><span>&gt;</span></span></div>

<div><div><div style="margin-left:160px"><b><span>- &lt;<span>li</span><span> <span>class</span>=&quot;<span>leaf first last</span>&quot;</span><span>&gt;</span></span></b></div>
<div style="margin-left:200px"><div><div><span>+ &lt;<span>a</span><span> <span>class</span>=&quot;<span>active</span>&quot;</span><span> <span>title</span>=&quot;&quot;</span><span> <span>href</span>=&quot;<span>/rouzdarou/</span>&quot;</span><span>&gt;</span></span></div>

</div></div><div style="margin-left:160px"><span>&lt;/<span>li</span>&gt;</span></div></div></div><div style="margin-left:120px">
<span>&lt;/<span>ul</span>&gt;</span></div></div></div><div style="margin-left:80px"><span>&lt;/<span>li</span>&gt;</span></div>
</div></div></div></div></div></div><div style="margin-left:80px"><b><span>+ &lt;<span>li</span><span> <span>class</span>=&quot;<span>leaf last</span>&quot;</span><span>&gt;</span></span></b></div>
<div style="margin-left:40px"><span>&lt;/<span>ul</span>&gt;</span></div><div style="margin-left:0px">
<div><div><div><div><span>&lt;/div&gt;</span></div><div>
<span><br></span></div><div><span><br></span></div><div><span><br>
</span></div><div><span>and here&#39;s my jquery:<br></span></div><div><span><br>                $(&quot;div.content ul.menu li.expanded a&quot;).click(function()<br>
                {<br>                    $(this).next(&quot;div.content ul.menu li.expanded ul.menu&quot;).slideToggle(300).siblings(&quot;div.content ul.menu li.expanded ul.menu&quot;).slideUp(&quot;slow&quot;);<br>                });<br>

</span></div><div><span><br></span></div><div><span>I already have jquery and update ,... installed. This is such a simple code I can&#39;t even make it work in drupal. I&#39;ve used it in page.tpl.php, also tried to include it in .info file.</span></div>

<div><span><br></span></div><div><span>Any1 can help me out here with drupal. Thanks in advance :)</span><span><br>
</span></div></div></div></div></div>-- <br><div dir="ltr">Pooya Sanooei<br><div><a href="http://twitter.com/sourcesoft" target="_blank">Twitter</a> - <a href="http://facebook.com/pooya.sanooei" target="_blank">Facebook</a> - <a href="http://www.javabgoo.com/" target="_blank">Website</a></div>

</div><br>
</div>
</blockquote></div><br></div></div></div></div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Pooya Sanooei<br><div><a href="http://twitter.com/sourcesoft" target="_blank">Twitter</a> - <a href="http://facebook.com/pooya.sanooei" target="_blank">Facebook</a> - <a href="http://www.javabgoo.com" target="_blank">Website</a></div>
</div><br>
</div>