beauregard Posted December 24, 2005 Share Posted December 24, 2005 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.