Tuesday, June 26, 2007

Animations in JavaScript

Today, professional designers use Flash to create dazzling animations. In the glory days before AJAX was in vogue and when animated gifs were the "cause célèbre" of avant garde Photoshop gurus, we had JavaScript.

There are two methods of interest here: setInterval () and clearInterval().

Presumably, we would need to play the frames of a sequence in a loop. We would call
setInterval() like this:

var Interval = setInterval ("MultiSelect()", 500);


By saving a reference to the current interval, we can pause the animation with clearInterval().

clearInterval (Interval);



Refer your friends to this blog:
http://programmingcentral.blogspot.com

2 comments:

Anonymous said...

We clearly see that this interval is awesome and that if you were to clean your buttocks with AJAX then it would hurt like a blowfish expanding in your bum. I say to the gurus and the flounders. How dare you heckle me with your inconvenient mannerisms and your typographic whit. Suck my balls!

Anonymous said...

We clearly see that this interval is awesome and that if you were to clean your buttocks with AJAX then it would hurt like a blowfish expanding in your bum. I say to the gurus and the flounders. How dare you heckle me with your inconvenient mannerisms and your typographic whit. Suck my balls!