This gives me an error in IE6 and IE7 on line 12 on position 3 and 5:

alert('javascript running...');

(function($) {
        alert('1');

        var settings = {
                effect: {
                        duration: 100,
                },
        };

        $.fn.menu = function() {
                alert('2');

                $(this).each(function() {
                        alert('3');
                        $(this).find('/li').hover(function() {
                                alert('4');
                                showItem($(this));
                        }, function() {
                                alert('6');
                                hideItem($(this));
                        });
                });

                return this;
        };

        function showItem(item) {
                alert('5');
                item.find('/a').addClass('active');

                item.find('/ul:hidden').slideDown(settings.effect.duration);
        };

        function hideItem(item) {
                alert('7');
                item.find('/a').removeClass('active');

                item.find('/ul:visible').slideUp(settings.effect.duration);
        };
})(jQuery);

What's wrong with the code? It works perfectly in Firefox.

Thanks so much for your help! =o)

Reply via email to