Posted By

Juego on 05/18/08


Tagged

jquery


Versions (?)

Who likes this?

14 people have marked this snippet as a favorite

korzhik
Roshambo
nbsp
mn_bat
xtheonex
loric
derekholmes
darkapple
seanpowell
romainsauger
austinhappel
vigoncas
lilumi
Beppoi


jQuery - Window on Resize event


 / Published in: JavaScript
 

URL: http://groups.google.com/group/jquery-en/browse_thread/thread/4a00d513c63f5c00

  1. function doSomething() {
  2. alert("I'm done resizing for the moment");
  3. };
  4.  
  5. var resizeTimer = null;
  6. $(window).bind('resize', function() {
  7. if (resizeTimer) clearTimeout(resizeTimer);
  8. resizeTimer = setTimeout(doSomething, 100);
  9. });

Report this snippet  

You need to login to post a comment.