You can see javascript recursion.

You can also guess why I am using it if you think a little(async).

And this is a nice effect.

http://awrdev.g3tech.in/vanishimage.html

Code:

function onebyone(el) {
        el.slideUp(6000, function() {
                el = arr.shift();
                if(el == null) {
                        return;
                } else {
                        onebyone(el);
                }
        });

}
        var arr = [ ];
$(function() {
        $('.vanish img').each(function() {
                arr.push($(this));
        });
        onebyone(arr.shift());
})

-Girish

-- 
Gayatri Hitech
http://gayatri-hitech.com
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Reply via email to