Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Click to enlarge?


bwprice100

Recommended Posts

Posted

Hi

I searched for solutions to the 'Click to enlarge' not working but to no avail.

 

When I click on the ?Click to enlarge? text to get the pop up nothing happens; if I try ?open in new window? I get ?page cannot be displayed?.

 

The source code shows:

***start of code**************************************

<script language="javascript"><!--

document.write('<a href="java script:popupWindow(\'http://ebolt.co.uk/catalog/popup_image.php?pID=2687\')"><img src="images/king_dick/3_4_skt_12_pnt.gif" border="0" alt="3/4Inch Drive Socket" title=" 3/4Inch Drive Socket " width="35" height="50" hspace="5" vspace="5"><br>Click to enlarge</a>');

//--></script>

***end of code***************************************

 

I have checked the content of /catalog/admin/popup_image.php and it is identical to the original I downloaded.

***start of code***************************************

/*

$Id: popup_image.php,v 1.7 2003/06/20 00:40:23 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

reset($HTTP_GET_VARS);

while (list($key, ) = each($HTTP_GET_VARS)) {

switch ($key) {

case 'banner':

$banners_id = tep_db_prepare_input($HTTP_GET_VARS['banner']);

 

$banner_query = tep_db_query("select banners_title, banners_image, banners_html_text from " . TABLE_BANNERS . " where banners_id = '" . (int)$banners_id . "'");

$banner = tep_db_fetch_array($banner_query);

 

$page_title = $banner['banners_title'];

 

if ($banner['banners_html_text']) {

$image_source = $banner['banners_html_text'];

} elseif ($banner['banners_image']) {

$image_source = tep_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES . $banner['banners_image'], $page_title);

}

break;

}

}

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<title><?php echo $page_title; ?></title>

<script language="javascript"><!--

var i=0;

 

function resize() {

if (navigator.appName == 'Netscape') i = 40;

window.resizeTo(document.images[0].width + 30, document.images[0].height + 60 - i);

}

//--></script>

</head>

 

<body onload="resize();">

 

<?php echo $image_source; ?>

 

</body>

 

</html>

***end of code********************************

 

 

I am using release

oscommerce-2.2ms2-051113

Easy Populate 2.79a

basic_design_pack1mk6

 

Any help much appreciated

I have tried different browser and without popup blockers

 

Brian

Archived

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

×
×
  • Create New...