VladDrakul Posted December 14, 2005 Posted December 14, 2005 Just wondering if I can use the below code in a infobox to create a popup window with 320 x 175 pixels <p onclick="MM_openBrWindow('http://www.my url/newpage.html','','width=320,height=175')"><a href="#">click here</a></p> I just need a infobox with the title NEWSLETTER and a text/link saying that: TO SUBSCRIBE / UNSUBSCRIBE TO OUR MAILING LIST CLICK HERE thats the only thing the infobox would have
Guest Posted December 15, 2005 Posted December 15, 2005 Just create a new box file then add some code like this: <!-- newsletter_box //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_IMAGE_PHONE); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('text' => '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_NEWSLETTERS) . '\\\')">TO SUBSCRIBE / UNSUBSCRIBE TO OUR MAILING LIST CLICK HERE<\/a>\');' . "\n" . '//--></script><noscript>' . "\n" . '<a href="' . tep_href_link(FILENAME_POPUP_NEWSLETTERS) . '" target="_blank">TO SUBSCRIBE / UNSUBSCRIBE TO OUR MAILING LIST CLICK HERE</a>' . "\n" . '</noscript>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- newsletter_box_eof //-->
Recommended Posts
Archived
This topic is now archived and is closed to further replies.