¡@

Home 

2014/10/16 ¤W¤È 12:02:45

jquery Programming Glossary: curridx

A Jquery rotator that doesn't suck? [closed]

http://stackoverflow.com/questions/5062684/a-jquery-rotator-that-doesnt-suck

allImgs.css position 'absolute' top 0 left 0 .hide var currIdx 0 allImgs.first .show function next var nextIdx currIdx 1 if.. currIdx 0 allImgs.first .show function next var nextIdx currIdx 1 if nextIdx allImgs.length nextIdx 0 allImgs.eq currIdx .fadeOut.. currIdx 1 if nextIdx allImgs.length nextIdx 0 allImgs.eq currIdx .fadeOut allImgs.eq nextIdx .fadeIn currIdx nextIdx function..

A Jquery rotator that doesn't suck? [closed]

http://stackoverflow.com/questions/5062684/a-jquery-rotator-that-doesnt-suck

javascript document .ready function var allImgs '.rotator img' allImgs.css position 'absolute' top 0 left 0 .hide var currIdx 0 allImgs.first .show function next var nextIdx currIdx 1 if nextIdx allImgs.length nextIdx 0 allImgs.eq currIdx .fadeOut.. img' allImgs.css position 'absolute' top 0 left 0 .hide var currIdx 0 allImgs.first .show function next var nextIdx currIdx 1 if nextIdx allImgs.length nextIdx 0 allImgs.eq currIdx .fadeOut allImgs.eq nextIdx .fadeIn currIdx nextIdx function prev.. var currIdx 0 allImgs.first .show function next var nextIdx currIdx 1 if nextIdx allImgs.length nextIdx 0 allImgs.eq currIdx .fadeOut allImgs.eq nextIdx .fadeIn currIdx nextIdx function prev var prevIdx currIdx 1 if prevIdx 0 prevIdx allImgs.length..