jaimejigga Posted August 2, 2006 Posted August 2, 2006 Hello, Please could you have a look at my site www.mountain-marine.com everything is working fine however when you try to enlarge any of my images there comes up an error notice ERROR 404 File not found. Please could anyone help have i simply turned a pop up box off. Thank you The more I use this the more I enjoy it. Jaime
PD_Steve Posted August 3, 2006 Posted August 3, 2006 You haven't actually switched them off. You seem to have added the site URL before the popup command. Example:- http://www.mountain-marine.com/catalog/java script:popupWindow('http://www.mountain-marine.com/catalog/popup_image.php?pID=2140') The above is the code on your site calling the popup window... It should actually be calling this java script:popupWindow('http://www.mountain-marine.com/catalog/popup_image.php?pID=2140') Somehow you have added the site URL prior to the javascript command and also added a space in the javascript (i.e. java script). Look for the following code in your products_info.php <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> Compare your code with the above. The above is the default version Cheers Steve My Toolbox: Crimson Editor, Adobe Photoshop CS2.0, Expression Web, Macromedia Suite 8.0, Cinema 4D, Nvu.
PD_Steve Posted August 3, 2006 Posted August 3, 2006 Addendum Something on this forum is making javascript into two words. I assume javascript is a banned word or the function is switched off to stop any scripts being run via the forums post area. Therefore, you probably dont have a space between java and script :), however, the rest of my post was relevant Cheers Steve My Toolbox: Crimson Editor, Adobe Photoshop CS2.0, Expression Web, Macromedia Suite 8.0, Cinema 4D, Nvu.
jaimejigga Posted August 4, 2006 Author Posted August 4, 2006 Hello, I have looked at my code and compared it to the original. It is the same. However my php editor did say that all Tabs had been replaced by spaces. Could i send you my file and you could have a look. Cheers Jaime.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.