jswan Posted January 25, 2003 Share Posted January 25, 2003 Hi Truncillicus: I, like most of the others, like the game controller metaphor. Kinda cool. I'll add one quick fix that you could do. On the product images that I clicked on, the popup window came up 100px X 100px, even though the images were big. You can modify that by adjusting the height and width of the popup window in the popupWindow javascript reference in the html head of your product_info.php page. Or, you could modify the java call itself to readjust the size of the window to the image width and image height. Look for: <script language="javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizab le=yes,copyhistory=no,width=450,height=400,screenX=150,screenY=150,top=150,left=1 50') } //--></script> near the top, and adjust the hieght and width if all of the popup images are the same size. If not, look for: <script language="javascript"><!-- document.write('<?php echo '<a href="javascript: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> and modify the call where it says SMALL_IMAGE_WIDTH and SMALL_IMAGE_HEIGHT to be either a fixed number, or some other variable. Good luck with the game release, Jason :thumbsup: Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.