0

Hi,

I like to scroll all the scroll bar at the time.first scroll is working fine.but other scroll not working

anyone have idea

<html>
    <title></title>
    <head>
    <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script>
    $(document).ready(function(){

    $('.box').each(function(){
            $(this).bind('scroll',function(){
                var leftPos = $('.box').scrollLeft();
                var leftPos = $('.box').scrollLeft(leftPos);
            });     
    });
    });
    </script>
    <style>
        .box{ width:500px; overflow-x:scroll; }
        .clear { clear:both;}
        .content{ height:50px; width:9000px; background:#ccc;}
    </style>
    </head>
    <body>
    <div class="box clear">
        <div class="content">asrsre</div>
    </div>
    <div class="box clear">
        <div class="content">asrsre</div>
    </div>
    <div class="box clear">
        <div class="content">asrsre</div>
    </div>
    </body>
</html>

Regards,
Developer

1
Contributor
1
Reply
3
Views
3 Years
Discussion Span
Last Post by designershiv
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.