ridesign Posted April 26, 2005 Share Posted April 26, 2005 I ant to add text in the search box, e.g. search here, and then when you click on the box it dissappears, i have managed to get some javascript code but i am having trouble putting it into the search.php file in the boxes folder. java script: value="Enter keyword/product code" onClick="if(this.value=='Enter keyword/product code')this.value='';" onFocus="if(ns4&&(this.value=='Enter keyword/product code'))this.value='';"> I am trying to put it here $info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'), 'align' => 'center', 'text' => tep_draw_input_field('keywords', '', 'size="12" maxlength="40" ') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>'); Can someone tell me what i need to do add the javascript in there. thanks Link to comment Share on other sites More sharing options...
ridesign Posted May 19, 2005 Author Share Posted May 19, 2005 hi, can anyone shed any light on this? thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.