Posted By

shapeshifta on 01/05/10


Tagged

prototype


Versions (?)

Simple Prototype Slideshow


 / Published in: JavaScript
 

URL: http://snook.ca/archives/javascript/simplest-jquery-slideshow#c64389

  1. setInterval(function(){
  2. var imgs = $$('.fadein img'),
  3. visible = imgs.findAll(function(img){ return img.visible(); });
  4. if(visible.length>1) visible.last().fade({ duration: .3 });
  5. else imgs.last().appear({ duration: .3,
  6. afterFinish: function(){ imgs.slice(0,imgs.length-1).invoke('show'); } });
  7. }, 3000);

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: shapeshifta on January 5, 2010

more @ http://mir.aculo.us/2009/12/11/simplest-prototype-scripty-slideshow/

You need to login to post a comment.