http://docs.jquery.com/Events#resize.28_fn_.29
So you probably want:
$(window).resize(function() {
...
});
IIRC, some browsers fire the resize event on load, and some don't.
Watch out for that.
--Erik
On 3/14/07, rolfsf <[EMAIL PROTECTED]> wrote:
>
> with jQuery, how do I fire off a function or two whenever a window is
> resized?
>
> I'm trying to adapt a more traditional javascript, and in this case I've got
> it attached to the body tag:
> <body onResize="doSomething;">
>
> hoping to graduate from jQKindergarten soon :-)
> --
> View this message in context:
> http://www.nabble.com/on-resize-in-jquery--tf3404986.html#a9483981
> Sent from the JQuery mailing list archive at Nabble.com.
>
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/