Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JS popup problem on Macintosh

Status
Not open for further replies.

fxcolin

Technical User
Oct 14, 2001
169
0
0
CA
Hi everyone,

I'm developing a popup catalog/portfolio for a client.

The first 2 javascript pages I did worked fine on a pc, but wouldn't open up at all on the client's Mac using IE, opened fine on Netscape 6.2.

So on to the third ...
The one thing I like about this one, is it auto-sizes to the size of the image. Unfortunately, on a Mac it only seems to open to a 2x2 inch square.

Can anyone please help me trouble-shoot it ? or
anyone know what I need to do to get it to work on a Mac using IE ?

will be designed for 1024x768

Thanks !

" a pat on the back... is only
18 inches away from a kick in the arse "

Web Development
Web Hosting
Hosting For Web Designers
 
The script in the pop-up is:

<script>
var isNN,isIE;
if (parseInt(navigator.appVersion.charAt(0))>=4){
isNN=(navigator.appName==&quot;Netscape&quot;)?1:0;
isIE=(navigator.appName.indexOf(&quot;Microsoft&quot;)!=-1)?1:0;}
function reSizeToImage(){
if (isIE){
window.resizeTo(100,100);
width=100-(document.body.clientWidth-document.images[0].width);
height=100-(document.body.clientHeight-document.images[0].height);
window.resizeTo(width,height);}
if (isNN){
window.innerWidth=document.images[&quot;George&quot;].width;
window.innerHeight=document.images[&quot;George&quot;].height;}}
function doTitle(){document.title=&quot;Some Title&quot;;}
</script>

Do you know for sure what the Mac IE browser returns??

var isNN,isIE;
if (parseInt(navigator.appVersion.charAt(0))>=4){
isNN=(navigator.appName==&quot;Netscape&quot;)?1:0;
isIE=(navigator.appName.indexOf(&quot;Microsoft&quot;)!=-1)?1:0;}

You may have to add third appName or a Version #.

Maybe you could do some alerts and verfiy that the
appName and Version are what you are expecting.

Maybe the appName is Micrapple.

2b||!2b
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top