ridesign Posted August 14, 2005 Share Posted August 14, 2005 Is there a way to add a scrollbar on the popup images? Here is my current code for it: <script language="javascript"><!-- document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . 'ℑ=0') . '\\\')">' . tep_image(DIR_WS_IMAGES . $new_image, addslashes($product_info['products_name']), $image_width, $image_height, 'hspace="5" vspace="5"') . '<br>' . BOX_IMAGE_TEXT . '</a>'; ?>'); //--></script> Thanks Link to comment Share on other sites More sharing options...
Guest Posted August 15, 2005 Share Posted August 15, 2005 Line 29 in product_info.php, make your adjustments to your javascipt there Link to comment Share on other sites More sharing options...
ridesign Posted August 31, 2005 Author Share Posted August 31, 2005 what would the code be for scrollbar in javascript? sorry i am not good with javascript at all. Is it the same code as sbove as i have changed my product_info page so the lines don't relate thanks Link to comment Share on other sites More sharing options...
Guest Posted August 31, 2005 Share Posted August 31, 2005 In the popupWindow function of product_info.php page change the window.open function args so the scrolls are enabled. Parameter scrollbars=yes Link to comment Share on other sites More sharing options...
ridesign Posted August 31, 2005 Author Share Posted August 31, 2005 Thanks for your reply. SO would i do the following: <script language="javascript"><!-- document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . 'ℑ=0') . '\\\')">' . tep_image(DIR_WS_IMAGES . $new_image, addslashes($product_info['products_name']), $image_width, $image_height, 'hspace="5" vspace="5"' scrollbars="yes") . '<br>' . BOX_IMAGE_TEXT . '</a>'; ?>'); //--></script> Thanks Link to comment Share on other sites More sharing options...
Guest Posted August 31, 2005 Share Posted August 31, 2005 No leave that code as it was you have to modify the popupWindow function from this <script language="javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','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') } //--></script> to this <script language="javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,re sizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,l eft=150') } //--></script> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.