»
EnglishFrenchVietnamese

Print - Count up onMouseover - JavaScriptBank.com

Full version: jsB@nk » Time » Counter » Count up onMouseover
URL: https://www.javascriptbank.com/count-up-onmouseover.html

Count up onMouseover © JavaScriptBank.comThis JavaScript counts up time in a textbox when you move mouse over image.

Full version: jsB@nk » Time » Counter » Count up onMouseover
URL: https://www.javascriptbank.com/count-up-onmouseover.html



JavaScript
<SCRIPT>function CountOn(){document.forms[0].counter.value++if(document.forms[0].counter.value>1000000)document.forms[0].counter.value=0Cont=setTimeout("CountOn()",100)}function StopCount(){clearTimeout(Cont)}</SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<A onmouseover=CountOn(1) onmouseout=StopCount(0) href="javascript:self.close()"><IMG src="../image/logojs.gif" width="160" height="50"></A> <BR>Touch the bell to count the time ... <BR><FORM><INPUT readOnly name=counter size="20"> </FORM><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->