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

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

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