JavaScript Timer to show layer in Dreamweaver

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jim

    #1

    JavaScript Timer to show layer in Dreamweaver

    How do I create a javascript timer to do the following:

    After the "submit" button is clicked on the website, wait 5 seconds and
    then show the button named "continue."

    Any help would be greatly appreciated!!!

  • SCDeveloper

    #2
    Re: JavaScript Timer to show layer in Dreamweaver

    Assuming that you are submitting data from PageA to PageB. On PageB,
    add setTimeout.

    In the following example it waits for 5000 milliseconds before it runs
    the SomOtherActions () function.

    self.setTimeout ('SomeOtherActi ons()', 5000);


    SCDeveloper


    Comment

    • Dr John Stockton

      #3
      Re: JavaScript Timer to show layer in Dreamweaver

      JRS: In article <1116249570.260 334.75500@o13g2 000cwo.googlegr oups.com>,
      dated Mon, 16 May 2005 06:19:30, seen in news:comp.lang. javascript,
      SCDeveloper <SCDeveloper@sh aringcorner.com > posted :[color=blue]
      >Assuming that you are submitting data from PageA to PageB. On PageB,
      >add setTimeout.
      >
      >In the following example it waits for 5000 milliseconds before it runs
      >the SomOtherActions () function.
      >
      >self.setTimeou t('SomeOtherAct ions()', 5000);[/color]

      No, it waits for 5000 milliseconds or a bit more. In some
      circumstances, the inaccuracy of setTimeout and setInterval can be
      important.


      For proper quoting when using Google for News :-
      Keith Thompson wrote in comp.lang.c, message ID
      <lnwtuhfy7d.fsf @nuthaus.mib.or g> :-
      If you want to post a followup via groups.google.c om, don't use
      the "Reply" link at the bottom of the article. Click on "show options"
      at the top of the article, then click on the "Reply" at the bottom of
      the article headers.

      --
      © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE 4 ©
      <URL:http://www.jibbering.c om/faq/> JL/RC: FAQ of news:comp.lang. javascript
      <URL:http://www.merlyn.demo n.co.uk/js-index.htm> jscr maths, dates, sources.
      <URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.

      Comment

      • Jim

        #4
        Re: JavaScript Timer to show layer in Dreamweaver

        OK, I'm really a newbie with this. I understand the setTimeout
        function, but how do I show the layer named "btnCont" after 5000ms?

        Comment

        • Jim

          #5
          Re: JavaScript Timer to show layer in Dreamweaver

          Never mind, I figured it out. Thanks!

          Comment

          Working...