All pastes #992068 Raw Edit

raisputin - wtf??

public text v1 · immutable
#992068 ·published 2008-04-21 16:14 UTC
rendered paste body
<script type="text/javascript">

<!--
var seconds
var minutes
var hours
var timeVal = "12"
if (timeVal = ''){
hours=00
minutes=00
seconds=00
else{
hours=00
minutes="12"
seonds=00
}
//document.TicketUpdate.UpdateTimeWorked.value="12"
function display(){
if (seconds>=60){
seconds=0
minutes+=1
}
else if (minutes>59){
seconds=0
minutes=0
hours+=1
}
else
seconds+=1
document.TicketUpdate.UpdateTimeWorked.value=hours+":"+minutes+":"+seconds
setTimeout("display()",1000)
display()
}

//-->

</script>


then in the form...
<form enctype="multipart/form-data" method="post" name="TicketUpdate" action="Update.html">\
...
...
Worked:
<input value="" name="UpdateTimeWorked" size="4"/>


Looks right to me...it is in testing now, that is why there is some weird stuff in there like timeVal=12, etc.

Other than crap code (which I have a replacement for at home that is MUCH better), what am I doing wrong here?