bet it's not recognizing the selector 'html'. Have you tried with document,
'body' or window?

On 3/13/07, Hrvoje Blažeković <[EMAIL PROTECTED]> wrote:

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/


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to