Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

popup_image.php javascript how do i get a vertical scroll bar on my browser


richard.pagotto

Recommended Posts

Posted

ive seen it on other sites

when clicked on the product image click to enlarge how do i get a vertical scroll bar on my browser?

ive look all around the net for code but cant find it.

 

my current code for popup_image.php is bellow... or am i looking in the wrong place... please help !

 

site is http://missclaylingerie.com/

 

<?php
/*
 $Id: popup_image.php,v 1.18 2003/06/05 23:26:23 hpdl Exp $

E-Commerce Solutions

 Copyright (c) 2005 www.flash-template-design.com

 Released under the GNU General Public License
*/

 require('includes/application_top.php');

 $navigation->remove_current_page();

 $products_query = tep_db_query("select pd.products_name, p.products_image from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "' and pd.language_id = '" . (int)$languages_id . "'");
 $products = tep_db_fetch_array($products_query);
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo $products['products_name']; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<script language="javascript"><!--
var i=0;
function resize() {
 if (navigator.appName == 'Netscape') i=40;
 if (document.images[0]) window.resizeTo(document.images[0].width +45, document.images[0].height+60-i);
 self.focus();
}
//--></script>
</head>
<body onLoad="resize();">
<?php echo tep_image(DIR_WS_IMAGES . $products['products_image'], $products['products_name']); ?>
</body>
</html>
<?php require('includes/application_bottom.php'); ?>

Posted
ive seen it on other sites

when clicked on the product image click to enlarge how do i get a vertical scroll bar on my browser?

ive look all around the net for code but cant find it.

 

scroll bars are specified when the window is created, not in the javascript for the window after it's created. you'll have to make the change in product_info.php.

 

http://www.w3schools.com/HTMLDOM/met_win_open.asp

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...