Fitness.com
Advertisement

Go Back   Sports Forum > Community > Graphics > General Photoshop Board

General Photoshop Board

Topics cover anything to do with Photoshop outside of those forums below.


» Site Navigation
 > Shop
» Current Poll
Best 5 club teams in history of Football:
Liverpool 1977-1978 - 100.00%
1 Vote
Real Madrid 1956-1960 - 0%
0 Votes
Juventus 1985 - 0%
0 Votes
Milan 1989-1990 - 100.00%
1 Vote
Ajax 1971-1973 - 0%
0 Votes
Santos 1962-1963 - 0%
0 Votes
Torinho 1940's - 100.00%
1 Vote
Ajax 1995 - 0%
0 Votes
Flamengo 1981 - 100.00%
1 Vote
Benfica 1961-1962 - 100.00%
1 Vote
Total Votes: 1
You may not vote on this poll.
» Stats
Members: 103,356
Threads: 84,986
Posts: 1,031,253
Top Poster: Karky (9,545)
Welcome to our newest member, ankkaewrae
» Fitness Shop
If you register for free, you will be able to post threads, vote on polls and lots more. If you have problems with the registration or logging in, please contact the administrator.

Reply
 
LinkBack Thread Tools Display Modes
Old 02-20-2004, 12:42 PM   To keep your animations moving... Post #1
Newb
 
Join Date: Jul 2003
Posts: 12
Rep Power: 0
Blinky2004 is an unknown quantity at this point
Send a message via ICQ to Blinky2004 Send a message via AIM to Blinky2004
Default To keep your animations moving...

I was just helping someone with this the other day and thought it might be useful for some members here. Especially those new to html or gif animations.

Here's the problem:
You have an animated gif running on your page, but when a user clicks a link that opens a new window, the animation stops running.

Here's the solution:
This situation is fairly simple. Just use a javascript function that will force the gif ani to reload, every so many seconds.

This is the code, and how it works:

Put this between the HEAD tags in your page:
-----------------------------------------------------------------------
<script language="JavaScript" type="text/javascript">
<!--
function reloadImage()
{
document.myImage.src = "toTop.gif";
}
//-->
</script>
-----------------------------------------------------------------------

Within the tag code for your image, insert this: name="myImage" (use whatever name _you_ want. Use no spaces though!) In the above Javascript code, replace the gif image (toTop.gif) to your own animation. If your animated gif is within an "image" folder and NOT in the same folder as the html page is, then add that to the image path in the Javascript code: i.e. "images/toTop.gif" .

To make this whole thing work, insert this into the BODY tag of your html page: onLoad="setTimeout('reloadImage()',3000)"

The 3000 in this part of the code means 3 seconds. Generally you want this number to be the exact same as the length of your animation. So if your animation lasts 5 seconds, change this number to 5000. That way it'll reload exactly when the sequence is over. That should help to make the change less noticeable.


Any questions/problems just ask. :B
Blinky2004 is offline   Reply With Quote
Reply

Go Back   Sports Forum > Community > Graphics > General Photoshop Board

Bookmarks

Thread Tools
Display Modes


Similar threads to To keep your animations moving...
Thread Thread Starter Forum Replies Last Post
Moving On
Moving On: Are there any players that you normally sign who...
arsenal_2111 Scout Report 5 10-02-2007 08:32 PM
How To Save Animations????
How To Save Animations????: can someone pls help me!! i've made an animation,...
cheryl_7 General Photoshop Board 1 07-09-2007 03:12 PM
Adobe After Effects and modeling animations
Adobe After Effects and modeling animations: Adobe After Effects, version 7 just came out, is...
gare General Photoshop Board 4 02-14-2006 12:35 PM
Jerky, handmade animations...
Jerky, handmade animations...: I made a rotating logo animation for a site, buts...
Avatar-of-Eccentricity General Photoshop Board 15 02-12-2005 10:40 PM
Defringing Animations. How is it done?
Defringing Animations. How is it done?: I have noticed that when I create animations in...
Cloak amp; Dagger General Photoshop Board 6 02-18-2004 06:54 PM

More threads of theKeeper
Thread Date Forum Replies Last Post
2.5 GIGApixel Photo
2.5 GIGApixel Photo: Check THIS out guys:...
12-16-2004 The Pub 4 01-26-2005 06:50 AM
Any Font Lovers in the House?!
Any Font Lovers in the House?!: Check THIS out! What a find! :D ...
12-05-2004 Resources 7 01-13-2005 06:01 AM
Glass Interface Panel
Glass Interface Panel: This overall effect is exactly the same as the...
12-28-2004 Tutorials 0 12-28-2004 08:51 AM
How to Post Content to this Board.
How to Post Content to this Board.: Hiya folks! Thanks for checking this out. ...
12-08-2004 Resources 0 12-08-2004 01:11 PM
Looking for PSG contributers...
Looking for PSG contributers...: This offer can/is open to anyone/everyone. I...
12-06-2004 The Pub 0 12-06-2004 01:29 PM

Other threads in forum General Photoshop Board
Thread Date Thread Starter Replies Last Post
Web Design & Coding Needed
Web Design & Coding Needed: Hi, I'm looking for someone to design a page...
05-23-2007 Josh7 3 06-13-2007 09:48 PM
Ronaldo vs Sheffield
Ronaldo vs Sheffield: C.Ronaldo vs Sheffield ...
04-18-2007 sevan 0 04-18-2007 12:14 PM
Dark .Tiff Files...
Dark .Tiff Files...: I've been searching for a while but I can't seem...
10-10-2006 thereverendstu 3 10-11-2006 10:26 AM
Tutorials with lost pics !
Tutorials with lost pics !: I found tutorials below have lost their pics...
01-09-2006 Orgon 7 01-11-2006 12:28 PM
stamp set
stamp set: I thought I'd make a new stamps job and this is...
02-12-2005 Duga Longsbi 0 02-12-2005 09:26 AM

» Online Users: 33
0 members and 33 guests
No Members online
Most users ever online was 2,128, 07-21-2008 at 08:27 PM.

All times are GMT +1. The time now is 04:23 PM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Fitness.com | Weight Loss | Training & Fitness | BodyBuilding | Chinese | Spanish | French | Germany | Italian | Friend Codes |
You are viewing To keep your animations moving....