JavaScript Forum JS Made Easy: Free JavaScripts Tutorials Example Code
About This Product
The Business Internet
Find it on This page:
| Over 5000 Free Fonts | Tutorials | Javascript Forum | Other Javascript Resources | Cheat Sheet

Jsmadeeasy Forums Home   Search   Login   Register   Member List  
JS Made Easy  > JavaScript programming  > Timer?  
Display using:  
Previous Thread :: Next Thread 
 Author Thread: Timer?
Savage is not online. Last active: 12/9/2007 3:25:03 AM Savage
Joined: 09 Jan 2006
Total Posts: 1
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">
<title>Daffy's laughter</title>

<script type="text/javascript">
function PauseDaffy()//Delayed daffy's laughter
{timer = setTimeout("endpause()",3000);
return false;}
function endpause()


<embed src="daffyhaha.wav" autostart="false" hidden="true" name="daffy" mastersound="">

Previous Thread :: Next Thread 
Page 1 of 1  > JS Made Easy  > JavaScript programming  > Timer?