Link to home
Start Free TrialLog in
Avatar of mmeachm
mmeachm

asked on

Add a scrollbar to this php/java popup code

I need to add scrollbars to the script below
<script language="javascript"><!--
var i=0;
function resize() {
  if (navigator.appName == 'Netscape') i=40;
  if (document.images[0]) window.resizeTo(document.images[0].width +30, document.images[0].height+60+i);
  self.focus();
}
//--></script>

Open in new window

Avatar of Chad Smith
Chad Smith
Flag of United States of America image


window.scrollbars.visible = true;

Open in new window

Avatar of mmeachm
mmeachm

ASKER

When I add this snippit: window.scrollbars.visible = true; the window either fails to open at all, or doesn't have scrollbars.
Avatar of mmeachm

ASKER

It appears the box size matches the image size, which may mean IE and FF don't add the scrollbars.  The problem is the image size is larger than screen view in some cases, so there is no way to view it all without scrollbars.  I hope this makes a bit more sense.

This code fragment is from osCommerce popup.php.
ASKER CERTIFIED SOLUTION
Avatar of Kyle Hamilton
Kyle Hamilton
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial