Please help: how to make marquee stop on mouseover?
Hello I found this usefull piece of code to make a scrolling test at :
http://maxvergelli.wordpress.com/2010/02/21/linear-scrolling-text-with-jquery/
- <script type="text/javascript">
- $(document).ready(function() {
-
- $('.scrollingtext').bind('marquee', function() {
- var ob = $(this);
- var tw = ob.width();
- var ww = ob.parent().width();
- ob.css({ left: -tw });
- ob.animate({ left: ww }, 20000, 'linear', function() {
- ob.trigger('marquee');
- });
- }).trigger('marquee');
-
- });
- </script>
- </head>
- <body>
-
- <div class="scroller">
- <div class="scrollingtext">
- scrolling text scrolling text scrolling text scrolling text scrolling text
- </div>
- </div>
But I dont know how to make scrolling dtop on mouseover, then resume on mouseout