This is a discussion on Pop ups dont work within the osCommerce 2.2 Discussion forums, part of the osCommerce 2.2 Forums category; Can somebody help me out. Pops up just dont show products in IE or firefox. Appreciate any help. This thing ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Can somebody help me out. Pops up just dont show products in IE or firefox. Appreciate any help. This thing is almost ready to go. http://www.belove7.com/epiphanyetc/ Heres my pop up files popup_image.js Code: <script language="javascript"><!--
var i=0;
function resize() {
if (navigator.appName == 'Netscape') i=10;
if (document.images[0]) {
imgHeight = document.images[0].height+65-i;
imgWidth = document.images[0].width+30;
var height = screen.height;
var width = screen.width;
var leftpos = width / 2 - imgWidth / 2;
var toppos = height / 2 - imgHeight / 2;
window.moveTo(leftpos, toppos);
window.resizeTo(imgWidth, imgHeight);
}
self.focus();
}
//--></script>
Code: <script language="javascript"><!--
function popupWindow(url) {
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')
}
//--></script>
Code: <?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
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);
$content = CONTENT_POPUP_IMAGE;
$javascript = $content . '.js';
$body_attributes = ' onload="resize();"';
require(DIR_WS_TEMPLATES . TEMPLATENAME_POPUP);
require('includes/application_bottom.php');
?>
|
| Sponsored Links | ||
| ||
|
#2
| ||||
| ||||
| Popups on your site work fine when I check...
__________________ Michael Sasek osCMax Developer
|
|
#3
| |||
| |||
| Thanks. Ya I turned off the mo pics. I thought I corrected my post. Sorry about that. My real problem is here http://oscdox.com/PNphpBB2-viewtopic-t-5739.html |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Prev / Next Buttons dont work Print catalog | zues | osCMax v2 Features Discussion | 0 | 10-21-2006 07:43 AM |
| EasyPopulate dont work | cakemaker | osCMax v2 Installation issues | 2 | 07-17-2006 04:28 PM |
| categories dont work | altenter | osCMax v2 Installation issues | 1 | 07-24-2005 08:04 AM |
| Please help with BTS 1.2a and templates, dont know how! | Anonymous | osCMax v1.7 General Mods Discussion | 0 | 06-26-2004 12:26 PM |
| Dynamic DHTML Menu, dont work | robinson | osCMax v1.7 Discussion | 1 | 03-11-2004 04:53 PM |