You know how your html layout is done?
Code:
<html>
<head>
</head>
<body>
</body>
</html>
It goes in the <head> of your document (highlighted in red).
Oh, you also have to surround the code I gave you with this tag:
Code:
<script type="text/javascript">...</script>
Resulting:
Code:
<html>
<head>
<script type="text/javascript">
window.onload = fade
var i = 0
function fade() {
if (i < 100) {
i=i+10
}
var d = document.body.style
d.filter = "alpha(Opacity="+i+")"
d.opacity = i/100
var num = document.all ? 10 : 100
setTimeout("fade()",num)
}
<script>
</head>
<body>
</body>
</html>
Bookmarks