Friday, 15 January 2010

jquery - How to Stop li-scroller? -



jquery - How to Stop li-scroller? -

i using plugin: li-scroller here code: jquery function code

i there way can destroy/stop/restart (remove divs , mark , start again) when applied unordered list via function.

<ul id="ticker01"> <li><span>10/10/2007</span><a href="#">the first thing ...</a></li> <li><span>10/10/2007</span><a href="#">end doing ...</a></li> <li><span>10/10/2007</span><a href="#">the code ...</a></li> <!-- eccetera --> </ul> class="lang-js prettyprint-override">$("ul#ticker01").liscroll();

jsfiddle

to stop , destroy scroller need "undo" li-scroller adds can utilize followiing jquery:

$("ul#ticker01") .clearqueue().stop() //stops animation .unwrap() //removes mask div .unwrap() //removes tickercontainer div .unbind() //unbinds events attached (like hover) .removeclass('newsticker') //removes class .removeattr('style'); //removes height style

example

jquery scroller

No comments:

Post a Comment