Hi,
got a problem, hope someone could help:
this function should open a popup showing an image automatically
adjusting browser window's height and width. It works fine with IE6 but
not with IE7.
In IE7 opens popup too small. why ?
function popImage(imageU RL,imageTitle){
if (isNN){imgWin=w indow.open('abo ut:blank','',op tNN);}
if (isIE){imgWin=w indow.open('abo ut:blank','',op tIE);}
with (imgWin.documen t){
writeln('<html> <head><title>Lo ading...</title><style>bo dy{margin:0px;} </style>');writel n
'<sc'+'ript>') ;
writeln('var isNN,isIE;');wr iteln('if
(parseInt(navig ator.appVersion .charAt(0))>=4) {');
writeln('isNN=( navigator.appNa me=="Netscape") ?1:0;');writeln ('isIE=(navigat or.appName.inde xOf("Microsoft" )!=-1)?1:0;}');
writeln('functi on reSizeToImage() {');writeln('if
(isIE){');write ln('window.resi zeTo(100,100);' );
writeln('width= 100-(document.body. clientWidth-document.images[0].width);');
writeln('height =100-(document.body. clientHeight-document.images[0].height);');
writeln('window .resizeTo(width +130,height+50) ;}');writeln('i f
(isNN){');
writeln('window .innerWidth=doc ument.images["George"].width;');write ln('window.inne rHeight=documen t.images["George"].height;}}');
writeln('functi on doTitle(){docum ent.title="LeMi eCime.it di Viali Athos
©";}');writeln( '</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no"
onload="reSizeT oImage();doTitl e();self.focus( )">')
else writeln('</head><body bgcolor=FFFFFF scroll="no"
onload="reSizeT oImage();doTitl e();self.focus( )"
onblur="self.cl ose()">');
writeln('<body> </html>');
close();
}}
thanks in advance
got a problem, hope someone could help:
this function should open a popup showing an image automatically
adjusting browser window's height and width. It works fine with IE6 but
not with IE7.
In IE7 opens popup too small. why ?
function popImage(imageU RL,imageTitle){
if (isNN){imgWin=w indow.open('abo ut:blank','',op tNN);}
if (isIE){imgWin=w indow.open('abo ut:blank','',op tIE);}
with (imgWin.documen t){
writeln('<html> <head><title>Lo ading...</title><style>bo dy{margin:0px;} </style>');writel n
'<sc'+'ript>') ;
writeln('var isNN,isIE;');wr iteln('if
(parseInt(navig ator.appVersion .charAt(0))>=4) {');
writeln('isNN=( navigator.appNa me=="Netscape") ?1:0;');writeln ('isIE=(navigat or.appName.inde xOf("Microsoft" )!=-1)?1:0;}');
writeln('functi on reSizeToImage() {');writeln('if
(isIE){');write ln('window.resi zeTo(100,100);' );
writeln('width= 100-(document.body. clientWidth-document.images[0].width);');
writeln('height =100-(document.body. clientHeight-document.images[0].height);');
writeln('window .resizeTo(width +130,height+50) ;}');writeln('i f
(isNN){');
writeln('window .innerWidth=doc ument.images["George"].width;');write ln('window.inne rHeight=documen t.images["George"].height;}}');
writeln('functi on doTitle(){docum ent.title="LeMi eCime.it di Viali Athos
©";}');writeln( '</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no"
onload="reSizeT oImage();doTitl e();self.focus( )">')
else writeln('</head><body bgcolor=FFFFFF scroll="no"
onload="reSizeT oImage();doTitl e();self.focus( )"
onblur="self.cl ose()">');
writeln('<body> </html>');
close();
}}
thanks in advance
Comment