Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > javascript: window.open ie6 vs ie7

Reply
Thread Tools

javascript: window.open ie6 vs ie7

 
 
Francesco
Guest
Posts: n/a
 
      10-06-2006
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(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN); }
if (isIE){imgWin=window.open('about:blank','',optIE); }
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln
'<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if
(parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0; ');writeln('isIE=(navigator.appName.indexOf("Micro soft")!=-1)?1:0;}');

writeln('function reSizeToImage(){');writeln('if
(isIE){');writeln('window.resizeTo(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('if
(isNN){');
writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.ima ges["George"].height;}}');
writeln('function doTitle(){document.title="LeMieCime.it di Viali Athos
";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no"
onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=FFFFFF scroll="no"
onload="reSizeToImage();doTitle();self.focus()"
onblur="self.close()">');

writeln('<body></html>');

close();

}}


thanks in advance

 
Reply With Quote
 
 
 
 
scriptguru@gmail.com
Guest
Posts: n/a
 
      10-07-2006

Francesco написав:
> 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 ?

1. Slightly smaller or really small?
2. Remember there is no real release of IE7. Betas and release
candidates may contain bugs.

Val Polyakh
http://trickyscripter.com

 
Reply With Quote
 
 
 
 
Francesco
Guest
Posts: n/a
 
      10-12-2006

http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> Francesco написав:
> > 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 ?

> 1. Slightly smaller or really small?
> 2. Remember there is no real release of IE7. Betas and release
> candidates may contain bugs.


about 30% smaller!

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IE7 and IE7 64-bit in Vista 64-bit 007 Windows 64bit 1 10-28-2008 08:46 PM
How do I setup a 32 bit IE7 since I'm using a 64 Bit IE7 =?Utf-8?B?RXVnZW5l?= Windows 64bit 3 05-06-2007 01:18 PM
IE7 on XP vs IE7 on Vista Jeff Louella HTML 9 03-02-2007 02:25 AM
Re: Upgraded from IE6 to IE7 and the default launch is different Theo Windows 64bit 3 12-31-2006 04:29 PM
ie6 feel on ie7 budh Computer Support 5 12-18-2006 08:57 PM



Advertisments