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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Popup Window Problem on a Mac in IE 5.1

Status
Not open for further replies.

chays

Technical User
Nov 12, 2001
25
US
I have created a portfolio in which a user clicks on an image and a popup window comes up with a larger image. The window loads a new html page with a .gif placed in it. I have all of the properties set to "0" so the image is centered titghtly in he window. This works fine in every browser except Internet Explorer 5.1 on a Mac. Here the Mac is adding 5-8 pixels along the right and bottom of the popup, making the image look off-centered (up and to the left). Is there a way to fix this? Should I use another, better popup script?

Here is the script I used:

1. In the Head:

function MM_openBrWindow(theURL,winName,features) { //v2.0

window.open(theURL,winName,features);

}


2.In the image:

<a href=&quot;javascript:MM_openBrWindow('detailpage_nippon.html','','width=296,height=374') &quot; onFocus=&quot;if(this.blur)this.blur()&quot;><img src=&quot;nippon.gif&quot; width=&quot;515&quot; height=&quot;185&quot; border=&quot;0&quot;></a>



Thanks
 
make sure in the body properties of the page you have
<body rightmargin=&quot;0&quot; leftmargin=&quot;0&quot; topmargin=&quot;0&quot; bottommargin=&quot;0&quot;>

Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top