Vanishing a div using JavaScript timer and CSS display none
<html>
<head>
<script type=”text/javascript”>
function timedMsg() {
var t=setTimeout(“document.getElementById(‘vanish’).style.display=’none’”, 5000);
}
window.onload=timedMsg;
</script>
</head>
<body>
<div id=”vanish” style=”position:absolute;left:420px;top:750px;”>Game loads after trailer</div>
</body>
</html>
<html> <head> <script type=”text/javascript”> function timedMsg() { var t=setTimeout(“document.getElementById(‘vanish’).style.display=’none’”, 5000); } window.onload=timedMsg; </script> </head> <body> <div id=”vanish” style=”position:absolute;left:420px;top:750px;”>Game loads after trailer</div> </body></html>
