I have this code:

$$('#menu>li>a').each(function(el){
        el.addEvent('click', function(e) {
                e.stop();

                // More code
        });
});

if (window.location.hash) {
        $(window.location.hash.substr(1)).fireEvent('click');
}


before that code runs I've allready set the click event for the
possible id's of window.location.hash.
does anyone knows why this don't work?

thanks

Reply via email to