hello reader … how do i put a timer on a piece of text?
for example, I want the text “[B]Loading …….[/B]” to appear on the page for only 5 seconds after the surfer first connects to my page, and after 5 seconds the text dissappears ……
any ideas on how to do that? i think its a pretty interesting topic … but i still need an answer as i plan on using it on my website
you have some script that adds an absolutely positioned div. I suggest that you add some style to the div. when it finishes running, a setTimeout will count 5 seconds then hide the div with display="none".
@helsleyJul 04.2005 — #Rather than a timer, it would probably be better to create the div first thing in your body and then have a body onload function that hides the div.