Thursday, November 10, 2011

I learned today of running JavaScript events triggered by the resize of a browser!

http://mediaqueri.es/ and http://api.jquery.com/resize/ show off the coolness of firing off effects on resizing a browser. What is really cool at the second link is:

$(window).resize(function() {

   $('body').prepend('<div>' + $(window).width() + '</div>');

});

No comments:

Post a Comment