Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

106 users online



Java: Document writing after a timelimit

Java: Document writing after a timelimit

Currently viewing this thread: 1 (0 members and 1 guests)


cannotbeused2

cannotbeused2

Neverside Newbie
Status: Offline!

Java: Document writing after a timelimit

Hey,
Basically as described in the topic, im after something so that once uve opened the page after a certain amount of time, lets say 5 seconds it then writes the text to the page. Ive tried this:

The functions

Code:


t = 6000;
function HelloWorld()
{
document.write('Hello');
}
function TextTimer()
{
setTimeout(HelloWorld(), t)
}


Onload

Code:


<body onload=TextTimer();>


Display

Code:


<SCRIPT LANGUAGE="JavaScript1.1">
TestTimer();
</SCRIPT>

Please could someone help, it would be very much appreciated.
Thanks
-Code

___________________

evolvedbb

sparky

sparky

I need a haircut
Status: Offline!

Works fine with a couple quotes.

Code:

setTimeout([b]"[/b]HelloWorld()[b]"[/b], t)

___________________

Jon Culver Chia Pets

cannotbeused2

cannotbeused2

Neverside Newbie
Status: Offline!

k thanks, it works

___________________

evolvedbb

Gil

Gil

Semantics Whore
Status: Offline!

It's NOT java, it's javaSCRIPT, it's a difference of a nuclear crater. Really, call it javascript, it really sounds unprofessional when you call javascript java...

theTrinity

theTrinity

David
Status: Offline!

http://www.htmlgoodies.com/beyond/j_vs_js.html

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0074 seconds.