Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

search box


ridesign

Recommended Posts

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

  • 4 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...