|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
ICQ- five seven 0 2 5 5 0
Join Date: Jan 2001
Posts: 10,747
|
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...
__________________
Investor with 5m - 15m USD to invest. Do you have a site or network of sites earning 50k - 200k a month income? Email your contact and preliminary data to: domain.cashventures (at) gmail.com....Please...no tire kickers...serious offers and inquiries only. |
|
|
|
|
|
#2 |
|
Registered User
Join Date: Jun 2004
Location: l.a.
Posts: 26
|
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 |
|
|
|
|
|
#3 | |
|
Confirmed User
Industry Role:
Join Date: Jan 2004
Location: Nor'easterland
Posts: 1,914
|
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. |
|
|
|
|