-
trouble with timeout
I want to make a count that adds "1" each second, but it ads 1 every second, like this(111111) instead of going to next number, its a math problem i think.......could anybody help.
--------this is the js file--------
function test(){
var count = parseFloat(+1);
document.write(count);
{
setTimeout("test();",2000);
}
}
------and this the index---------
<html>
<head>
<script LANGUAGE="javascript" type="text/javascript" src="secure_load.js"></script>
</head>
<body onload="test()">
<script LANGUAGE="javascript" type="text/javascript" src="secure_load.js"></script>
</body>
</html>
-
Similar Threads
-
By Dan-Yeung in forum VB Classic
Replies: 5
Last Post: 10-16-2002, 04:59 PM
-
By Michael Tzoanos in forum VB Classic
Replies: 1
Last Post: 04-03-2002, 02:47 PM
-
By Anil in forum Database
Replies: 0
Last Post: 12-21-2001, 02:51 PM
-
By vaidyanathan.k in forum VB Classic
Replies: 1
Last Post: 05-08-2001, 12:23 PM
-
By chaumette in forum VB Classic
Replies: 2
Last Post: 03-31-2000, 11:09 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks