javascript click event queue -
i made simple gallery when click on image thumb nail, show larger image fade in fade out effect jquery.
$('#thumnail').click(function(){ $('#piccontainer').fadeout(function(){ $('#piccontainer').html('<div> <img src="' + imgsource + '" /> </div>'); }); $('#piccontainer').fadein(); });
but if click on 5 different thumbnails quickly, large image fade in fade out 5 images. how can disable lets clicked on 5 thumbnails very quickly, should fadein last 5th one. basicaly how can stop queue of click events?
thanks help.
take @ - http://api.jquery.com/queue/
Comments
Post a Comment