Please,
can someone tell me why IE hangs when executing this code?
$(document).ready(
function(){
$(window).resize(
function(){
var ys =
$('html').height();
alert(ys);
if(ys>700){
$('#wrap').addClass('over1024');
} else {
$('#wrap').removeClass('over1024');
}
return false;
}
);
}
);
When the window is resized in IE the browser hangs, but other
browsers (Fireworks, Safari) just do fine..
Is there a simpler way to write this function?
Thanks for your time
Hrvoje
====================
Hrvoje Blažeković
tel.: 048/220 418
fax.: 048/220 417
e-mail: [EMAIL PROTECTED]
------------------------------------
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/