Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Have lost all my pop up images


jaimejigga

Recommended Posts

Posted

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

Posted

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.

Posted

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.

Posted

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.

Archived

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

×
×
  • Create New...