Thread: Javascript
View Single Post
Old 06-14-05, 01:22 PM   #5 (permalink)
star882
Aximsite Veteran
 
star882's Avatar
Uber Member
 
Join Date: Oct 2004
Posts: 1,858
Thanked 3 Times in 3 Posts

Awards Showcase
Aximsite Active Bronze Member 
Total Awards: 1

Quote:
I know nothing...lol. I am looking for someone to make me a javascript timer that counts down from 10 and when its done, it redirects pages
I can help you with the timer.
Let's say that an animation is to be drawn, and a time delay is necessary to it works at the right speed.

private void animate(Graphics g)
{
Thread animate = Thread.currentThread();
try
{
//some animation code
animate.sleep(n); //will pause program by n miliseconds
//some more animation code
}
catch(InterruptedException e)
{
}
}

For your Java applet, it would be similar, except that you will call the method to change pages after the delay is over.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

TCPA would take your freedom! Say NO!
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

HDTV the way it should be:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Originally Posted by A friend of mine who has a Linux kernel named after his girlfriend.
If I was VirtualBox, I could load my virtualization module into Hannah and boot up another kernel in the same address space.
star882 is offline   Reply With Quote