Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function(){
- var imagesz = ['#imgone', '#imgtwo', '#imgthree', '#imgfour'],
- parent = $('#parent');
- (function nextImages(){
- var imgas = imagesz.slice();
- for(var i=0; i<3; i++){
- var z = $(imgas.splice(0|Math.random() * imgas.length, 1)[0]).delay(15).fadeIn(15).delay(200).fadeOut(50, i ? $.noop : nextImages)
- alert(z);
- parent.append(
- $(imgas.splice(0|Math.random() * imgas.length, 1)[0]).delay(15).fadeIn(15).delay(4500-(15*i)).fadeOut(50, i ? $.noop : nextImages)
- );
- }
- })();
- });
Add Comment
Please, Sign In to add comment