Guest Posted February 10, 2003 Share Posted February 10, 2003 can someone tell me what the correct syntax is for modifying an item in the information box listing so it creates a popup window using javascript? the syntax is driving me crazy........ I want to take the following item from the information box and add the javascript new '<A href="http://fwdepot.com/drivers.html" target="_blank"><B>Driver Downloads</B></A><br>' . and use the following javascript <a href="java script:NewWindow('http://fwdepot.com/drivers.html','bbb','615','400','custom','front');"> can someone tell me how to mix the two statements together so it works in the information box please....? TIA Link to comment Share on other sites More sharing options...
toolcrazy Posted February 10, 2003 Share Posted February 10, 2003 Here's what my wishlist contrib uses. (Well not my cotrib, but one I have installed. <script language="javascript"><!-- function popupWindowWishlist(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resiza ble=yes,copyhistory=no,width=425,height=580,screenX=200,screenY=150,top=25,left=1 50') } //--></script> <?php $customer_wishlist_string .= '<tr><td colspan="3" align="right" class="smallText"><a href="java script:popupWindowWishlist('' . tep_href_link('popup_' . FILENAME_WISHLIST_HELP, '','NONSSL') . '')"><u>'. BOX_HEADING_CUSTOMER_WISHLIST . ' Help</u> [?]</a></td></tr>' . "n"; // Popup link ?> Calls the script. I thought you might be able to modify this to your needs. This is just an example. Steve ------------------------- Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.