OnLoad it has to count from 10 to 0 and redirect to some website.
here is the public link - http://dl.dropbox.com/u/
——————————————
<html>
<head>
<script language=”JavaScript”>
function welcome() {
var textMessage = document.getElementById(“textMessage”);
var counter = 10;
var newElement = document.createElement(“p”);
newElement.innerHTML = “We will count for 10 seconds..”;
var id;
textMessage.parentNode.replaceChild(newElement, textMessage);
id = setInterval(function() {
counter–;
if(counter < 0) {
newElement.parentNode.replaceChild(textMessage, newElement);
clearInterval(id);
window.location =”http://google.co.in”;
} else {
newElement.innerHTML = “We will begin in ” + counter.toString() + ” seconds.”;
}
}, 1000);
}
</script>
<style>
body
{
background-color:#b0c4de;
}
p
{
text-align:center;
margin-top :300px;
font-size:6em;
}
</style>
</head>
<body onload=”welcome()” >
<embed src=”clock.mp3″ autostart=”true” loop=”false” width=”0″ height=”0″>
</embed>
<p id=”textMessage”>Here we go . . </p>
</body>
</html>
——————————
Happy Coding . .