Re: possible java script question
- From: "Paul" <Paul@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 5 Jan 2006 13:11:04 -0800
ok got it working!
--
Paul G
Software engineer.
"Kevin Spencer" wrote:
> Hi Paul,
>
> The text box was an example of displaying the data. The data is the variable
> "timeLeft." The function decrements the variable and displays it (in this
> case) in a text box. How you display the value of the variable is up to you.
> In other words, I didn't intend for you to simply copy and paste it.
> Apparently, you pasted it into the <head> section of your document. I'm not
> sure why. In any case, an "input type=text" text box belongs inside a form.
> A script can be anywhere in an HTML document.
>
> Just use that Software engineer inside you to take my example, and create
> your own implementation of it, based upon the principles illustrated, and of
> course, obeying the rules of HTML.
>
> --
> 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:320BE6BB-8560-4057-B81D-4B871CF3B7CF@xxxxxxxxxxxxxxxx
> > Hi thanks I tried it but get the following error,
> > per the active schema the element input can not be nested within "head"
> > --
> > Paul G
> > Software engineer.
> >
> >
> > "Kevin Spencer" wrote:
> >
> >> <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.
> >>
> >>
> >>
>
>
>
.
- Follow-Ups:
- Re: possible java script question
- From: Kevin Spencer
- Re: possible java script question
- References:
- Re: possible java script question
- From: Kevin Spencer
- Re: possible java script question
- From: Kevin Spencer
- Re: possible java script question
- Prev by Date: Can some one help me understand the need of COM+?
- Next by Date: synchronize folder contents
- Previous by thread: Re: possible java script question
- Next by thread: Re: possible java script question
- Index(es):
Relevant Pages
|