small javascript problem
Posted
by dfg
on Stack Overflow
See other posts from Stack Overflow
or by dfg
Published on 2010-03-24T11:04:50Z
Indexed on
2010/03/24
11:33 UTC
Read the original article
Hit count: 351
JavaScript
|function
Hi,
I have this little function that opens modal window type thing. The problem is that it doesnt work on IE. All other browser its fine, but on IE, nothing happends:
function showOverlayBox() {
if( isOpen == false ) return;
$('#full').css({
display:'block',
left: ( $(window).width() - $('#full').width() )/2,
top: ( $(window).height() - $('#full').height() )/2,
position:'absolute'
});
$('.BgCover').css({
display:'block',
width: $(window).width(),
height: $(window).height()
});
}
function doOverlayOpen() {
isOpen = true;
showOverlayBox();
$('.BgCover').css({opacity:0}).animate( {opacity:0.8} );
return false;
}
function doOverlayClose() {
$('#full').css( 'display', 'none' );
$('.BgCover').animate( {opacity:0}, null, null, function() { $(this).hide(); } );
}
Maybe something to do with isOpen == false?
© Stack Overflow or respective owner