syntax:stop ( [ clearQueue ] )
return type:void, element
content:ใช้ หยุด การทำงานของ animate ของ ทุก element ภายใน set
โดย clearQueue หมายถึงต้องการให้หยุด queue function ด้วย ใช่หรือไม่ ( Default = false )
example:$("div#animate").queue ( "testQueue", [
function ( next ) { $(this).show ( "slow" ); },
function ( next ) { $(this).animate ( { left:"+=200" }, 2000 ); },
function ( next ) { $(this).animate ( { left:"-=200" }, 2000 ); }
] );
$("div#animate").queue ( "testQueue", function ( next ) { $(this).hide ( "slow" ); } );
$("div#animate").stop ( true );