chris_angell
08-19-2002, 01:52 PM
hello, I am trying to get the page to fade in when it loads.. instead of using the microsoft enterpage metahead value..
here is the code I am trying, but no luck
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
function fadeInPage() {
if (document.getElementById("fadeDiv").filters.alpha.opacity < 100){
document.getElementById("fadeDiv").filters.alpha.opacity += 10;
eval('setTimeout("fadeInPage()",100)');
}
else{
document.getElementById('fadeDiv').style.visibility = "visable"
}
}
</script>
</head>
<body onLoad="fadeinpage()">
<DIV ID="fadeDiv" style="visibility:hidden">
your page code goes here
</DIV>
</body>
</html>
here is the code I am trying, but no luck
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
function fadeInPage() {
if (document.getElementById("fadeDiv").filters.alpha.opacity < 100){
document.getElementById("fadeDiv").filters.alpha.opacity += 10;
eval('setTimeout("fadeInPage()",100)');
}
else{
document.getElementById('fadeDiv').style.visibility = "visable"
}
}
</script>
</head>
<body onLoad="fadeinpage()">
<DIV ID="fadeDiv" style="visibility:hidden">
your page code goes here
</DIV>
</body>
</html>