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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -