Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Making the click to enlarge popups work


beauregard

Recommended Posts

For a few days now I've been trying to make the click to enlarge popups to work, I've tried different contribs, my last effort is with Kingsley's contrib.

What happens with his code is that it makes the image popup but it also makes my browser resize to the same size as the popup of the product.

Any advice ???

 

This is the script as written in the head part of product_info.php.html

<script language="javascript" type="text/javascript">

<!--

function popupWindow(url)

{

newwindow=window.open(url,'name','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');

if (window.focus) {newwindow.focus()}

return false;

}

 

This is the second part in the body section

<td class="smallText" align="middle">

<a href="$product_popup_url" onClick="return popupWindow('$product_popup_url')">

$imagesmall</a>

<br>

<a href="$product_popup_url" onClick="return popupWindow('$product_popup_url')">

Click to Enlarge</a></td>

</tr>

Any suggestion ???

Thanks everyone

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...