You have superfluous commas in your settings and effect objects, indicating
another member is going to be added but there isn't one.

Try ...

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


Thasmo wrote:
> 
> 
> 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)
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Plugin-doesn%27t-seem-to-work-in-IE6-and-IE7-tf4411579s15494.html#a12588953
Sent from the JQuery mailing list archive at Nabble.com.

Reply via email to