views:

23

answers:

0

Hi, how do I do something like that in a menu?

If has children → turn off links; if doesn't has children → link on?

Can anyone help me????! :)

I was trying like that:

over = function(){
    var $$ = $(this), menu = getMenu($$);
    if ("li:has(ul)") {
        clearTimeout(menu.sfTimer);
        $$.showSuperfishUl().siblings().hideSuperfishUl();
        return false;
    } 
    if ("li:has.not(ul)") {
        clearTimeout(menu.sfTimer);
        $$.showSuperfishUl().siblings().hideSuperfishUl();
        return true;
    } 
},