Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Big image directly on the page instead of pop up window


Guest

Recommended Posts

I uploaded the : image_resize1 contribution

 

Now I would like to have the big image directly on the page instead of the pop up window, but I don't know to modify the code:

 

Can anybody help modify this code so to avoid the pop up and have directly the big imaget?

 

------------------------------------------------------------------------------

<script language="javascript"><!--

document.write('<?php echo '<a href="java script:popupWindow('' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info_values['products_id']) . '')">' . tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], addslashes($product_info_values['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');

//--></script>

 

----------------------------------------------------------

 

thanks in advance for your help.

 

sebans

Link to comment
Share on other sites

I uploaded the : image_resize1 contribution

 

Now I would like to have the big image directly on the page instead of the pop up window, but I don't know to modify the code:

 

Can anybody help modify this code so to avoid the pop up and have directly the big imaget?

thanks in advance for your help.

 

sebans

 

Change all that (after you've backed it up :) ) to:

 

<?php

echo tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], addslashes($product_info_values['products_name']), '', '', 'hspace="5" vspace="5"');

?>

Leaving out the image height and width will cause the browser to display the image ACTUAL size. So don't go creating 1200 by 1400 pixel pics now ;)

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...