san84 Posted February 13, 2008 Posted February 13, 2008 ok, you will have to forgive me, i have very little expererience with HTML, PHP etc.. To make the popup window, in the footer.php (as this is where the picture is which i want to make clickable and a window pops up) i have found this code. <td style="width:212px"><br style="line-height:42px"><?php echo tep_image(DIR_WS_IMAGES.'p1.gif')?></td> i presume that is defining the properties of the picture. at the start of footer.php i have added 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,l eft=150') } I need to embed the following code to the properties of the picture?? <script language="javascript"><!-- document.write('<?php echo '<div><a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . TEXT_CLICK_TO_ENLARGE . '</a></div>'; ?>'); //--></script> <noscript> <?php echo '<div><a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank"><br style="line-height:7px">' . TEXT_CLICK_TO_ENLARGE . '</a></div>'; ?> </noscript> I dont know how to do it as i do not know what the last paragraph of code means any help please? thanks!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.