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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-06-2004, 10:17 PM   #1
TheJimmy
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.
TheJimmy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-06-2004, 10:39 PM   #2
enjetek
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
enjetek is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-06-2004, 11:47 PM   #3
rickholio
Confirmed User
 
Industry Role:
Join Date: Jan 2004
Location: Nor'easterland
Posts: 1,914
Quote:
Originally posted by TheJimmy
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...
Two relatively painless ways of handling this.

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.
rickholio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.