/ Published in: JavaScript
URL: http://jsfiddle.net/eXp5j/5/
Expand |
Embed | Plain Text
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); } }
You need to login to post a comment.
