Internet explorer says Object doesn't support this property or method

后端 未结 8 904
遥遥无期
遥遥无期 2021-01-07 03:14

This line is 79:

window.addEvent(\'domready\', function(){     
    mySlide = new Fx.Slide(\'advert\');
    mySlide.hide();
});

It also doe

相关标签:
8条回答
  • 2021-01-07 03:33

    seems like you aren't really taking advantage of jQuery. I don't speak mooTools, so I may not get this completely right, but I would try something like this:

    jQuery(document).ready( function() {
        //you could convert this to jQuery too, of course
        mySlide = new Fx.Slide('advert');
        mySlide.hide(); 
    } );
    
    jQuery(this).wrap( '<div class="overflow-wrapper"></div>' )
                .parent('.overflow-wrapper').css('overflow', '' );
    
    0 讨论(0)
  • 2021-01-07 03:45

    In case you are landing on this page while desperately searching for why you have this error in IE, allow me to point out another way this can happen. Hopefully, either the mere act of me posting this will help me remember this, or this question will show up in google the next time I run into this error. It seems to happen at least every 2 years.

    This can show up if you've named a variable (Not sure if it has to be global, mine was this time) the same thing as an element's ID. For instance:

    <div id="foo">
    </div>
    <script type="text/javascript">
        var foo = 1; < --Object doesn 't support this property or method!!
    </script>
    
    0 讨论(0)
提交回复
热议问题