Forum Moderators: open

Message Too Old, No Replies

AOL Browser

javascipt problem

         

Big_Balou

6:06 am on Oct 8, 2002 (gmt 0)

10+ Year Member



I use a javascript popup for showing larger pictures of products and this works great in IE, Netscape and Mozilla but I just got a chance to try it out in the AOL 7.0 browser and the tool bars across the top prevent the full image from being shown. When this happens there is no way to scroll the image and if you try to maximize the window it will only only show as much of the image as was shown in the popup.

The code I'm using is:

In the HEAD or External JS file:

function cPop(url, wide, high)
{window.open(url,"popup",'width=' + wide + ',height=' + high);
}

In the BODY:

<a href="javascript:cPop('page.html',300,500)">Click for popup window</a>

as posted by Tedster in the thread on Handy Generic Javascipt [webmasterworld.com]

Has anyone else seen this? Is there a workaround?

keyplyr

6:14 am on Oct 8, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



This code has worked well for NN... but haven't tested for AOL 7.

In the HEAD (or external JS omit the <script> tags):

<script language="JavaScript" type="text/javascript" src="/scripts/menu.js">
<!--
var win= null;
function NewWindow(mypage,myname,w,h,scroll){
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
settings='height='+h+',width='+w+',top='+wint+',left='+winl+',
scrollbars='+scroll+',toolbar=no,location=no,status=no,menubar=no,
resizable=no,dependent=no'
win=window.open(mypage,myname,settings)
if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}
//-->
</script>

On the page:

<a
href="javascript:NewWindow('/your_page.html,'popup','360','400','no')">text_link</a>

<NOTE: edited to prevent side scrolling. In actual use there should be no line breaks in the string of windows attributes.>

[edited by: tedster at 7:17 am (utc) on Oct. 8, 2002]

Big_Balou

6:34 am on Oct 8, 2002 (gmt 0)

10+ Year Member



Thanks keyplyr,

I'll try it and see what happens but it's going to have to wait till tommorow it's 0235 here.