/    Sign up×
Community /Pin to ProfileBookmark

timed page load after animation

how do i do a timed page load once an animation is complete? like i mean…how do i make it so once an animation (such as flash or an animated gif) is done..it automatically goes to another link?

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@JonaApr 24.2003 — This is more Javascript than HTML, really....

<html><head>

<script>

var exit = setTimeout("leave()", 9000); //number of milliseconds, 1000 = 1 second. Set this to the appropriate time for your animation's ending

function leave(){

location="my_new_page.html";

}

</script></head><body>

<img src="my_ani.gif">

</body></html>

This will work for a 9 second long GIF animation.
Copy linkTweet thisAlerts:
@HTMLmaniacauthorApr 24.2003 — tho i know this is javascript...what about for flash animation? and i can make it longer than 9 seconds can't i?
Copy linkTweet thisAlerts:
@JonaApr 24.2003 — In Flash you can use ActionScript to call the URL of a function... getURL(){ url = "javascript:doFunction();";}

Anyways, just change that 9000 up at the top. It it's 5 minutes, use 600000*5; if it's just one minute, use 600000. 1000 = 1 second. 60000 = 6 seconds.
×

Success!

Help @HTMLmaniac spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...