ridesign Posted August 14, 2005 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
Guest Posted August 15, 2005 Posted August 15, 2005 Line 29 in product_info.php, make your adjustments to your javascipt there
ridesign Posted August 31, 2005 Author 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
Guest Posted August 31, 2005 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
ridesign Posted August 31, 2005 Author 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
Guest Posted August 31, 2005 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>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.