Home > Questions and Answers > General Questions

Countdown timer issue.... (1)


07-23-2011 11:28 PM #1 iwanturcoin (Member)
Countdown timer issue....

So i've just started toying around with using some geoscripts and i'm using this countdown timer but whenever I move it down the whithespace in the countdown form increase in height and covers my image as you can see below the further i move it down the whitespace increases evenly on the top and bottom of the timer how can i change this i can't seem to figure it out.....Also I can't get the script to got right to the top of the image even if I set padding-top to 0px it still positions it about 50px from the top of the image, how can I position this higher so its right in the top corner?




coding -

<form name="counter" style="margin: 0px;">
<span style="font-size: 12px; padding-left:550px;">HURRY! Closes In
<input value="103.2" name="d2" style="border: 0px none; background-color: rgb(255, 255, 255); font-size: 14px; color: blue; font-weight: bold; width: 40px;padding-top:80px;" type="text">Seconds
</span>
</form>
<script>

<!--

//

var milisec=0

var seconds=120

document.counter.d2.value='120'



function display(){

if (milisec<=0){

milisec=9

seconds-=1

}

if (seconds<=-1){

milisec=0

seconds+=1

}

else

milisec-=1

document.counter.d2.value=seconds+"."+milisec

setTimeout("display()",100)

}

display()

-->

</script>


Home > Questions and Answers > General Questions