linkedin facebook linkedin facebook nod32

JavaScripda joriy soniya

Muallif: Mengliyev Sh.

Qo`shilgan sana: 2015-04-20

JavaScripda joriy soniya

Index.html faylni xosil qilib olamiz

<HTML>
<HEAD>
<TITLE>Timer</TITLE>
<SCRIPT language="JavaScript">
var ttmnow=0;
var ths='0';
var thn=0;
var tms='0';
var tmn=0;
var tss='0';
var tsn=0;

function treset()
{
tendtm();
thn=0;
tmn=0;
tsn=0;
document.ttmfm.ttm.value = '00:00:00';
}

function tendtm() {
if (ttmnow)
clearTimeout(ttmnow);
}

function tstarttm() {
{

ths=thn;
tms=tmn;
tss=tsn;
if (thn<10)
ths='0' + ths;
if (tmn<10)
tms='0'+tms;
if (tsn<10)
tss='0'+tss;
document.ttmfm.ttm.value = '' + ths+':'+tms+':'+tss;
if (ttmnow)
{
clearTimeout(ttmnow);
ttmnow=0;
}
tsn+=1;
if (tsn>59)
{
tmn+=1;
tsn=0;
if (tmn>59)
{
thn+=1;
tmn=0;
if (thn>23)
thn=0;
}
}
}
ttmnow=setTimeout("tstarttm()",1000);
}

</SCRIPT>

</HEAD>
<BODY bgcolor="#000000" text="#ffffff" onload="document.ttmfm.ttm.value = '00:00:00'" onunload="tendtm()">
<center>
<form name="ttmfm">
<input type="text" name="ttm" size=8><br>
<input type="button" name="start" value="Start" onClick="tstarttm()">
<input type="button" name="stop" value="Stop" onClick="tendtm()">
<input type="button" name="reset" value="Reset" onClick="treset()">
</form>
</center>

</BODY>
</HTML>

1024 marta o`qildi.

Foydalanuvchi ismi: Eshboyev Quvonchbek 203
Qo`shilgan sana: 2015-04-17

ajoyib

Parol:
Eslab qolish.


Ro`yhatdan o`tish

testing

+998915878681

Siz o`z maxsulotingizni 3D reklama ko`rinishda bo`lishini xohlaysizmi? Unda xamkorlik qilamiz.

3D Reklama


Рейтинг@Mail.ru
Рейтинг@Mail.ru

Besucherzahler
счетчик посещений