Quantcast
Channel: انجمن گروه آشیانه - آموزش امنیت و راه های مقابله با هک
Viewing all articles
Browse latest Browse all 19202

سوال: ایجاد تایمر با جاوا اسکریپت

$
0
0
سلام دوستان
این کد رو توی یه فیلم آموزشی طرف اجرا کرد ولی الان اجرا نمیشه... چرا؟؟؟
Tnx
کد PHP:

<html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<
title>Untitled Document</title>
<
script language="javascript">
var 
timer;
function 
Start()
{
    
timer setTimeout("counter()",1000);
}       
function 
Stop()
{
    
clearTimeout(timer);
}
function 
counter()
{
    var 
document.getElementById("tf").value;
    var 
parseInt(c);
    
i++;
    
alert ("");
    
document.getElementById("tf").value; = i;
    }
</script>
</head>
 
<body>
<input type="button" value="Start" onclick="Start();" />
<input  value="0" type="text"  id="tf" readonly />
<input type="button" value="Stop" onclick="Stop();" />
</body>
</html> 


Viewing all articles
Browse latest Browse all 19202

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>