Would java be ok?
Code:
<head>
<script>
<!--
//
var milisec = 0;
var seconds = 0;
function display(){
if (milisec>=9){
milisec=0
seconds+=1
}
else
milisec+=1
document.counter.ShambleS.value = seconds + "." + milisec;
setTimeout("display()",100);
}
-->
</script>
</head>
<body onload="display();">
<form name="counter">
<input type="text" size="10" name="ShambleS">
</form>
I just noticed...
i think you want it to Log how long people were there.
Not just display it for their benafit...
and you want it in VB.
So i cant help i dont think.
But if the Java script is good enough..
You can add more variables your self..
I.e
var mins = 0;
var hours = 0;
For mins and hours...
then you can add
if (seconds>=60).....
and then the diferent variables there of..
youd also need to change This...
document.counter.ShambleS.value = seconds + "." + milisec;
to something like
document.counter.ShambleS.value = hours + "." + mins + "." + seconds + "." + milisec;
To add the extra decimal points in the clock counter..
"the words are the same as the names you gave your variables"
"note: .counter.ShambleS. are related to the form name and input type name. and can be changed to any thing you like (but they need to be the same name in both)"
But like i said.
i doubt its what you want.
Bookmarks