You are here: Re: how to get animations to repeat themselves endlessly « HTML « IT news, forums, messages
Re: how to get animations to repeat themselves endlessly

Posted by Gιrard Talbot on 03/09/07 19:56

[Followup-to set to: alt.html]

kvnsmnsn@hotmail.com wrote :
> I've got two GIF files named "Tigger.gif" and "Angry_barbarian.gif"
> that contain animations that I want to display on a web page.

You cross-posted your message to 2 newsgroups but you did not indicate
to which group you want to get an answer. So, I set a followup-to to
alt.html. Please next time, set the followup-to.

It would have been useful here to post an url where we could have
examined your webpage and those GIF files.

I've
> written the following XHTML code which works for a fraction of a sec-
> ond but no more.

I'm not sure I understand what you mean. Your XHTML code just position 2
images absolutely and that's it. By default, <img> have visibility set
to visible: so that's unneeded in your CSS code.

> That is, the animations run for a very short period
> of time and then stop.

What exactly "run" in your webpage? The position of images or GIF files
which are animated? It's not clear.

> My guess is that they're running through their
> short animated period and then stopping.

No url. No image files available.

> How can I display animations
> like this that keep moving, that start over from the beginning as soon
> as they reach the end of their animation?

"like this"? Like what? No url. No image files available.

> Any input on this would be
> greatly appreciated.
>

Mozilla-based browsers (Seamonkey 1.x, Firefox 1+, Camino 1.x, Galeon,
K-meleon 1.x, Epiphany, Mozilla Suite 1.x) can prevent images from being
animated endlessly.

In about:config,
image.animation_mode
can be set to once.

Opera 9 can prevent animated gifs from being animated endlessly.

Animated gifs are annoying as they disturb peripherical vision and
actual reading. Before loading animated gifs, a web author has to ask
himself if those animated gifs are actually true content or decorative
stuff and if the frequency of animation is going to annoy rather than
help the user.

Animated gifs can be as annoying, disturbing the viewing/reading of a
webpage as much as an agressive advertisement in Flash.

>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-
> transitional.dtd">

Why XHTML? And, more importantly, why transitional?

> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <title>Animations Test</title>
> </head>
> <body>
> <img src="Tigger.gif" id="tigger"
> style="position: absolute; top: 100px; left: 300px
> ; visibility: visible" />
> <img src="Angry_barbarian.gif" id="barbarian"
> style="position: absolute; top: 100px; left: 500px
> ; visibility: visible" />
> </body>
> </html>
>

[Followup-to set to: alt.html]

GΓ©rard
--
Using Web Standards in your Web Pages (Updated Dec. 2006)
http://developer.mozilla.org/en/docs/Using_Web_Standards_in_your_Web_Pages

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация