Perhaps i should explain what im trying to achieve.

What i want is menu where 1st menu has lavalamp background and some of
the menu items have submenues that slide open.

If i use ganesh's lavalamp and submenues together then lavalamp
catches events on 1st level and prevents second level from opening.

so i wanted to create something  in between...

but perhaps i dont have to, if there is similar function.

Alan

On Jun 27, 3:31 pm, zayatzz <alan.kesselm...@gmail.com> wrote:
> Hello
>
> I have function like this:
>
> $("ul.lavaLamp li:has ul").hoverIntent(function(){ ....
>
> For various reasons i need to run other functions in this hoverintent
> function, some functions need to be run for all lavalamp ul li's not
> only those that have ul's. Therefore i have to run hoverintent like
> this instead:
>
> $("ul.lavaLamp li").hoverIntent(function()
>
> But what is the shortest way to run certain functions on those li's
> that have uls.
>
> if  ($(this has:ul)) obviously does not work.. but is there a function
> that checks if element has certain children? something i could use
> like if ( $(this).has(element) )
>
> Alan

Reply via email to