gnuffo1 Posted December 11, 2005 Posted December 11, 2005 The images appear fine, the link appears there, it even changes colour like a normal link would, and the address appears on the status bar, but it just doesn't work. The text it displays in the status bar is: java script:popupWindow('http://www.shopname.com/productname.html') and that text also is the same if you right click on the link and go to properties. The javascript section for it in product_info.php is as follows: <script language="javascript"><!-- document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); //--></script> Is there anything wrong with this?
gnuffo1 Posted December 11, 2005 Author Posted December 11, 2005 Sorry, it is www.sentinel-technology.co.uk
241 Posted December 11, 2005 Posted December 11, 2005 you may be missing this just above your </head> tag in product_info.php <script language="javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le ft=150') } //--></script> No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
gscreations Posted December 11, 2005 Posted December 11, 2005 Sorry, it is www.sentinel-technology.co.uk looking at your source looks like your missing the javascript function popupWindows from your head
gnuffo1 Posted December 11, 2005 Author Posted December 11, 2005 It still doesn't work. Also, I tried doing that contribution where you can have the name of the product as the title of the page, instead of a title for the whole site, and that didn't work either, and of course <title> tags are in the head tag. The main title for the site is stored in includes/languages/english.php so should I try inserting the javascript image head tag in there?
gnuffo1 Posted December 11, 2005 Author Posted December 11, 2005 Acutally, that wouldn't work would it, because that file just has a load of define functions.
gnuffo1 Posted December 11, 2005 Author Posted December 11, 2005 I've got it working. What I did is I went to the web site I got the theme off, went to the demo of it, went into a product page and copied their javascript image head text.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.