Connecting Tech Pros Worldwide Help | Site Map

JavaScript Timer to show layer in Dreamweaver

  #1  
Old July 23rd, 2005, 08:50 PM
Jim
Guest
 
Posts: n/a
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!!!

  #2  
Old July 23rd, 2005, 08:50 PM
SCDeveloper
Guest
 
Posts: n/a

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('SomeOtherActions()', 5000);


SCDeveloper
http://www.sharingcorner.com

  #3  
Old July 23rd, 2005, 08:51 PM
Dr John Stockton
Guest
 
Posts: n/a

re: JavaScript Timer to show layer in Dreamweaver


JRS: In article <1116249570.260334.75500@o13g2000cwo.googlegroups. com>,
dated Mon, 16 May 2005 06:19:30, seen in news:comp.lang.javascript,
SCDeveloper <SCDeveloper@sharingcorner.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.setTimeout('SomeOtherActions()', 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.org> :-
If you want to post a followup via groups.google.com, 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.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
  #4  
Old July 23rd, 2005, 08:52 PM
Jim
Guest
 
Posts: n/a

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?

  #5  
Old July 23rd, 2005, 08:53 PM
Jim
Guest
 
Posts: n/a

re: JavaScript Timer to show layer in Dreamweaver


Never mind, I figured it out. Thanks!

Closed Thread