Savage
|
| Joined: 09 Jan 2006 |
| Total Posts: 1 |
| |
|
Timer? Posted: 09 Jan 2006 07:52 PM |
Hello. My first time here. I hope I am in the right spot.
I am a total beginner. I started self learning javascript only 2 days ago.
This code waits x seconds before it starts. I am trying to get this code to execute and then stop after x seconds. Can anyone help?
The code also shows an error message in the status area and I am not able to find out why.
Thank you
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Daffy's laughter</title>
<script type="text/javascript">
<!--
function PauseDaffy()//Delayed daffy's laughter
{timer = setTimeout("endpause()",3000);
return false;}
function endpause()
{document.daffy.play();}
//-->
</script>
</head>
<body>
<embed src="daffyhaha.wav" autostart="false" hidden="true" name="daffy" mastersound="">
</body>
</html> |
|
|
 |
|