Works here in IE 8. But you have to navigate to it from another page. If you just paste the address into the addressbar, the effect will not occur.
Or, use this jQuery version:
Code:
<!DOCTYPE html>
<html>
<head>
<title>Fade-In Page Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript">
/* jQuery Fade-In Page script (c)2011 John Davenport Scheuer
As first seen in http://www.dynamicdrive.com/forums/
username:jscheuer1 - This credit must remain for legal use.
*/
$('head').append('<style type="text/css">\n/* Style for Fade-In Page script */\n#fadeDiv ' +
'{\n\tdisplay:none;\n}\n/* End Style for Fade-In Page script */\n</style>\n');
jQuery(function($){
$('#fadeDiv').fadeIn(1500); // Edit speed in milliseconds
});
</script>
</head>
<body>
<div id="fadeDiv">
<div>
Welcome to my Homepage!
</div>
</div>
</body>
</html>
Note: The fadeDiv has changed. Instead of covering the page it contains it.
If you want more help:
Please post a link to a page on your site that contains the problematic code so we can check it out.
Bookmarks