99darkgreenGT Posted February 12, 2004 Share Posted February 12, 2004 i am trying to add a live support box to my site. i know how to create new boxes already. my problem is i want to have an image within that box for the live support and to perform a javascript function when clicked on. how would this be entered in the php file? also which file would it go in? here is what i have made so far: includes/boxes/support.php basically what i have done is copied an existing infobox (includes/boxes/information.php) and made changes in order to make the new includes/boxes/support.php and here is how it is so far.... <?php /* $Id: support.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ ?> <!-- support //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_SUPPORT); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SUPPORT, '', 'NONSSL') . '">' . BOX_support_SUPPORT . '</a>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- support_eof //--> do i need to make a includes/languages/english/support.php file? also, here is the javascript code i want in the box: <!-- Powered by: Crafty Syntax Live Help (CSLH) http://www.craftysyntax.com/livehelp/ --> <script language="javascript" src="http://www.birddogbowling.com/livehelp/livehelp_js.php?department=1"></script> <!-- copyright 2003 by Eric Gerdes --> sorry the post sounds a little scattered, hopefully it makes sense and someone can help me out. thanks! if i am going about this totally wrong, someone let me know, as to i am horrible at php :o Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.