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
popup_window.jsCode:<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>popup_image.phpCode:<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'); ?>




LinkBack URL
About LinkBacks










Bookmarks