Guest Posted October 6, 2005 Posted October 6, 2005 hi, i'm using the product URL field to display a popup window of the size guide for my product I'd like to turn this: <?php echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info['products_url']), 'NONSSL', 'false', 'false')); ?></td> into a java popup, sized, with no nav bar, scroll or resize.... i'm not to good at programming, but would really like to learn how to make this url field more functional it is on the product_info page which already has this my java source looks like this: <script language="javascript"> <!-- function popupWindow(url) { win_obj=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') win_obj.focus(); } //--> and my script looks like this: <script language="javascript"><!-- document.write('<?php echo '<a href="java script:popupWindow(\\\'' . sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info['products_url']), 'NONSSL', 'false', 'false')); . '\\\')">' . '</a>'; ?>'); //--></script> <noscript> <?php echo '<a href="' . tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info['products_url']) . '" target="_blank">' . '</a>'; ?> </noscript> but my syntax is all messed up, would love a hand!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.