Re: possible java script question
- From: "Kevin Spencer" <kevin@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 5 Jan 2006 13:33:46 -0500
<input type="text" size="10" id="timer" value="60">
<input type="text" size="5" id="timer" value="60" style="font-size: 14pt"
name="timer">
<script type="text/javascript"><!--
var timeLeft = 60;
function setTimer()
{
if (timeLeft > 0) timeLeft--;
document.getElementById("timer").value = timeLeft;
}
setInterval("setTimer()", 1000);
//--></script>
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but it takes a very long time,
and the bicycle has to *want* to change.
"Paul" <Paul@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1D7B9036-B065-4CE8-A4AA-8DE85E8D6F4D@xxxxxxxxxxxxxxxx
> Hi I have a .net application that shows the start page for a few seconds
> and
> then goes to another start page. I was wondering if it would be possible
> to
> put a count on the page to let the user know how much time is left before
> it
> goes to the other page, thanks.
> --
> Paul G
> Software engineer.
.
- Prev by Date: Re: Why the server controls do not show?
- Next by Date: Re: Simple issue tracker? Wiki?
- Previous by thread: Re: possible java script question
- Next by thread: Re: possible java script question
- Index(es):
Relevant Pages
|