1

I use this piece of code to animate horizontal scroll, but don't work in IE!!!

<script type="text/javascript">
$(document).ready(function() {

    $('#next').click(function() {
        $('body').stop().animate({scrollLeft:"+="+500},1000); 
        $('#prev a').show();
    });

    $('#prev').click(function() {
        $('body').stop().animate({scrollLeft:"-="+500},1000 );
    });
});
</script>
Mysteriis
  • 39
  • 6
  • Check this question for any answers related to jQuery and IE. [jquery-animate-doesnt-work-as-expected-in-ie](http://stackoverflow.com/questions/333911/jquery-animate-doesnt-work-as-expected-in-ie) – Tahir Malik Apr 13 '11 at 13:58

1 Answers1

1

Off the top of my head, try using this selector instead:

$('html, body').stop().animate({...
karim79
  • 339,989
  • 67
  • 413
  • 406