Re: possible java script question



ok thanks,just tried to copy it without reading through it.
--
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.
> >>
> >>
> >>
>
>
>
.



Relevant Pages

  • Re: possible java script question
    ... Paul G ... "Kevin Spencer" wrote: ... > The text box was an example of displaying the data. ... > Just use that Software engineer inside you to take my example, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: cause webpage one to reload when webpage two is closed.
    ... Paul G ... Software engineer. ... one webpage to reload when a second web page is closed. ... you are using Master page and it means you should change a BODY ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: sort problem sorting a generic list
    ... Paul G ... Software engineer. ... if I had any signficant sized lists. ... return returnValue; ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: changing folder name
    ... Software engineer. ... "Paul" wrote: ... map it to a physical folder outside the application root and store the ... am allowing users to store files that are associated with a report. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: can javascript do this
    ... when moving items back to the original listbox it does not preserve ... Paul G ... Software engineer. ... sure how often they update the toolkit with new ajax controls but I may ...
    (microsoft.public.dotnet.framework.aspnet)