- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Admin
There are actually certain times where this method of animating images would be beneficial:
That being said, if those reasons don't apply, it's best to "just use a freaken animated GIF"
Admin
I worked with a web programmer once that had a sense of humor about it, and our "please wait" animation was one of several silly things, silliest one being a dancing frog playing a banjo.
Admin
Holy #$%#ing CRAP! Could it be that someone like myself could have missed the last line? Oh t3h no3z COMMON MISTAKE! Let's all point and laugh at the retard and regurgitate the same comment that everyone else has ALREADY SAID so we aren't left out in the lynching and we can all feel better about ourselves for blowing up a situation that was all a simple mistake.
Please sir... do englighten me! Teach me the ways of how I can be like you and be an idiot that just jumps to conclusions with the sole intent of trying to be cool. I MUST KNOW!
Addendum (2009-03-30 12:11): OBVIOUS TYPO: enlighten*
Admin
Boy, that global variable is evil.
I'd recommend something like
and call it like Animate(1) in the first place.
Admin
I haven't done recursive calls in javascript yet, but would a VERY long load cause a stack overflow?
Admin
Where are you, spelling nazis, when we need you?
Admin
These GIF's can use animation hack for more than 256 colors and because of this direct animation can be impossible.
Admin
Admin
i feel a poo coming on
Admin
I'm sorry, I was busy exterminating dangling participle's
What was it you wanted?
Admin
As someone else asked, it was IE6 that would lock animations, and I'm all but certain the above approach would not work.
I had to make a modification to an app that did all this as a hack (this was way pre-ajax):
Today's wtf is much better (with or w/o the rafactorings).
Admin
Admin
You must be new here.
Admin
PHB: "See what happen when I hit ESC? This animation stopped. I want this fixed!"
Hence the WTF.
Admin
Hmmm, well, perhaps you missed that line in your rush to add a coveted "First post (with no content)" to your collection of l33t online victories.
Admin
I work on same project. Plz send teh codez!
Admin
[quote user="whatever"][quote user="LightStyx"]
Please sir... do englighten me! Teach me the ways of how I can be like you and be an idiot that just jumps to conclusions with the sole intent of trying to be cool. I MUST KNOW! [/quote]
I think you have the 'idiot who jumps... with the sole intent of trying to be cool' part covered with your first post, there.
Admin
Was the whole "it took me an hour" anecdote a joke? This is one of the most obvious WTFs I've seen.
Admin
Hey did you know there's an easy way around that? just create the gif animation in GIMP as one file then stick it in there. Why would one need programming to animate a gif when they themselves are already animated?
Admin
Admin
Admin
Admin
Admin
MNG FTW!
Admin
That one's not a stupid as http://thedailywtf.com/Comments/Technically,-Its-Still-GIF-Animation.aspx?pg=2#252425.
Admin
Admin
I don't understand, hatterson. Your link doesn't bring me to xkcd.
Admin
[quote user="rofl"][quote user="whatever"][quote user="LightStyx"]
Please sir... do englighten me! Teach me the ways of how I can be like you and be an idiot that just jumps to conclusions with the sole intent of trying to be cool. I MUST KNOW! [/quote]
I think you have the 'idiot who jumps... with the sole intent of trying to be cool' part covered with your first post, there.[/quote]
Look folks, we have another idiot who completely misquotes and misconstrues what people type in forums... sorry but you fail.
The correct version is: Teach me the ways of how I can be like you and be an idiot that just jumps to conclusions with the sole intent of trying to be cool.
Admin
That reminds me of a project of mine. I was thinking of taking some xkcd comics, converting them to gifs and then stringing them together to make a sort of animated slide show. I found some sample code here http://thedailywtf.com/Articles/Technically,-Its-Still-GIF-Animation.aspx What do you think?
Admin
Just when I was to write about how they were trying to make animated PNGs...TRWTF is I didn't know they actually existed. Well...outside of IE, at least ;-)
Admin
OK, but seriously now. Nobody has yet commented on the fact that GIF animation can be switched off in most browsers, and that this program may be an attempt to circumvent that. GIF animation, even in a browser that has it switched off.
And if the webpage would start out with displaying a real animated GIF to begin with, it would catch the case where Javascript is turned off. Then, if it really really wants to do animation, it needs to cater to browsers that have both javascript and animated gifs disabled. We could make a Flash animation for that.
Unless Flash is disabled too. Let me think. Wait a minute, how about refreshing the whole page every 200 ms?
Admin
If you did this using animated ASCII art instead of this newfangeled Flash and Javascript stuff, could it actually work?
Admin
Google did exactly the same thing with their chat smileys when they were first introduced. I don't know why though.
Admin
Don't you just love web languages and standards?
Admin
this comment thread could serve as a warning to all future CS students..."do you see what you may end up preferring spending your time on?"
Admin
Other reasons...
Admin
A nitpick:
setTimeout("Animate()",200);
should be:
setTimeout(Animate,200);
Admin
Who left this running all night again?!
Admin
Who needs semi-colons anyway.
function Animate(i){setTimeout(Animate,200,i=i?(1+i%6):1,document.getElementById("Logo").src='Template/Wait0'+i+'.gif')}
Admin
Admin
Maybe it stops animating images because it receives the headers for the next page from the web server and it unloads the animations and things that are no longer needed, in preparation for rendering this incoming page.
Firefox can't predict the report will take a while to load, the incoming page with the report should output a layer with a loading image and then start generating the report and then dumping it to the user.
Admin
if ($_SERVER["HTTP_HOST"] != "http://www.wtfchuck.com") { die('Wrong website'); }
Admin
You know, I think this guy already mentioned that video...
Admin
Admin
I would "solve" it that way:
Create a image that is larger than the image that should be displayed. Just put all six images below each other. Put it as background of that div and just manipulate the offset of the background over time. That way you have no extra loading time, no problem with ... well... anything. You can even let it scroll smothly. ;)
In the end: Animated gifs are a stupid idea because at least most people I know have them deactivated.
Admin
That all depends on the purpose of the animation.
I wrote code to track downloads that advanced the animation whenever a certain amount of bytes had transmitted. You could see at a glance if your download was moving fast, slow, or not at all. Since "not at all" was a frequent occurrence, this was very useful.
I wrote it in OS/2. I could have translated it to Windows, but idiot co-worker was supposedly the Windows expert so she(*) got the job. Windows apparently had built-in animated progress widgets, so she used it, completely missing the point.
(*) Just FYI, I am also female; so was most of my team. She was the only one who was an idiot.
Admin
A møøse once bit my sister ...
Admin
animFrame = animFrame % 6 + 1;
So in javascript this is the way to perform a loop?
Admin
Sadly not. If you have a "please wait" page that displays, then re-loads to pull in the "real" next page, all animation will stop when the new page load starts. "img.src = img.src" (or setting it to the original filename) will restart it in certain versions of IE, but not in Firefox.
One trick is to load a fresh copy of the same image elsewhere in the browser, e.g. in a tiny iframe on the page, since Firefox animates all copies of the same image in sync. But if you're serving over HTTPS, you'll need an initial content for that iframe: "about:blank" is insecure content!
Or you can just use manual animation, and it's not a problem. Makes putting alternating adverts on your loading pages a breeze, too...