/ Published in: JavaScript

adapted from:
[http://aktuell.de.selfhtml.org/artikel/javascript/fader-framework/bilderslideshow.htm](http://aktuell.de.selfhtml.org/artikel/javascript/fader-framework/bilderslideshow.htm)
[http://aktuell.de.selfhtml.org/artikel/javascript/fader-framework/bilderslideshow.htm](http://aktuell.de.selfhtml.org/artikel/javascript/fader-framework/bilderslideshow.htm)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function fade(step) { var imgs = document.getElementsByTagName("img"); step = step || 0; imgs[1].style.opacity = step/100; imgs[1].style.filter = "alpha(opacity=" + step + ")"; step += 2; if (step <= 100) { setTimeout(function() { fade(step); }, 1); } }
URL: http://jsfiddle.net/eXp5j/5/
Comments
