hi, i found this script that makes text contents fade out from http://www.richardsramblings.com/?p=486
i was wondering if its possible to make it fade in instead of fade out using this script
script:
in the htmlCode:// @name Slowly Fade // @version 0.88 // @author Richard D. LeCour // @namespace http://www.richardsramblings.com/?p=486 var opacity = 99; // Avoid starting at 100% due to Mozilla bug var slowly = { fadein : function (id) { this.fadeLoop(id, opacity); }, fadeLoop : function (id, opacity) { var object = document.getElementById(id); if (opacity >= 5) { slowly.setOpacity(object, opacity); opacity -= 4; window.setTimeout("slowly.fadeLoop('" + id + "', " + opacity + ")", 99); } else { object.style.display = "none"; } }, setOpacity : function (object, opacity) { object.style.filter = "alpha(style=0,opacity:" + opacity + ")"; // IE object.style.KHTMLOpacity = opacity / 100; // Konqueror object.style.MozOpacity = opacity / 100; // Mozilla (old) object.style.opacity = opacity / 100; // Mozilla (new) } }
HTML Code:<BODY onload=javascript:slowly.fadein('content')> <DIV id=content> content here </div>



Reply With Quote

Thanks for pointing that out, I'll look into it.

Bookmarks