Connecting Tech Pros Worldwide Help | Site Map

Add scrollbar to popup window

 
LinkBack Thread Tools Search this Thread
  #1  
Old January 25th, 2007, 06:25 PM
Schoolie
Guest
 
Posts: n/a
Default Add scrollbar to popup window

I'm running OS Commerce and I've pasted the script below that is used
to "popup" an enlarged image when a user clicks on the image. I need to
add a scrollbar to the popup but don't know how to.

Can anyone help?

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

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Modified : 2006-03-09 by Henry Smith <custodian@smithsecurities.com>
Changes : Minor enahncement provides proper popup window resizing
based on image, also adds a close window [x] option.

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>
<link type="text/css" rel="stylesheet" href="/css/stylesheet.css">
<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 +40,
document.images[0].height+120-i);
self.focus();
}
//--></script>
</head>
<body onLoad="resize();">
<p class="smallText" align="center">
<?php echo tep_image(DIR_WS_IMAGES . $products['products_image'],
$products['products_name']); ?>
<a href="javascript:window.close()"><br><u>Close Window</u>
[x]</a></p></p>
</body>
</html>
<?php require('includes/application_bottom.php'); ?>


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.