![]() |
J_A_V_A_S_C_R_I_P_T Gurus - Help...
anyone know how to display a form/button after a specified time delay?
like I want an html page to have some text, bla bla bla, then after about 20seconds on that same page I want a form/button to show up... thanks in advance... |
from what i think you want you might want to use another language such as php/asp to rewrite/add the html of the page after the delay time. with hahahahahahahahahaha you can use it to rewrite html after the time but it can be easier to just forward it to another page. with php/asp you can just refresh the page with the new button(s) added without having to worry about other files because it can all be written in 1 file. i may be wrong but i hope it helps.
-myke |
Quote:
Method 1 - Put your form inside a DIV that's visibility: hidden. Start your timeout and have your callback un-hide the DIV. Method 2 - Put an empty DIV where you want your form to appear. When your timeout runs, put the entire content of your form into the DIV using innerHTML. I've used both methods successfully, although the second one can be a bit of a PITA due to size limitations of static strings in js... I tend to use that more for dynamic regeneration of display elements. HTH. HAND. |
| All times are GMT -7. The time now is 02:20 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123