/ Published in: jQuery
The fade version of the Colony Park Website
Expand |
Embed | Plain Text
var onAfterStateOne = 'first'; var onAfterStateTwo = 'first'; var onAfterStateThree = 'first'; $('#frontImg3').cycle({ fx: 'fade', speed: 1200, timeout: 0 }); $('#frontImg2').cycle({ fx: 'fade', speed: 1200, timeout: 0, after: onAfterTwo }); $('#frontImg1').cycle({ fx: 'fade', speed: 1200, timeout: 5000, after: onAfterOne }); function onAfterOne() { if (onAfterStateOne == 'first') { onAfterStateOne = 'nope'; } else { $('#frontImg2').cycle('next'); } } function onAfterTwo() { if (onAfterStateTwo == 'first') { onAfterStateTwo = 'nope'; } else { $('#frontImg3').cycle('next'); } }
You need to login to post a comment.
