I've been trying to get some text to fade in from opacity 0 to 100, but I can't seem to get it to work right. Credits to the person for the original fadeOut version.
Here's the code...
fadeIn = function(id, speed) {
var s = document.getElementById(id).style;
s.opacity = 0;
(function fade() {(s.opacity+= .1)<100?s.display="inline":setTimeout(fade,speed)})();
}
jQueryin your task or somewhat?$('#" + id).fadeOut(2000)where 2000 is 2 seconds :) Just in case you will use it.