سلام دوستان
این کد رو توی یه فیلم آموزشی طرف اجرا کرد ولی الان اجرا نمیشه... چرا؟؟؟
Tnx
این کد رو توی یه فیلم آموزشی طرف اجرا کرد ولی الان اجرا نمیشه... چرا؟؟؟
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 c = document.getElementById("tf").value;
var i = 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>