This is a discussion on modify search.php within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Hi - I've modified search.php, so that the text "enter keyword" initially appears in the search field when a page ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi - I've modified search.php, so that the text "enter keyword" initially appears in the search field when a page loads. What I would like to have happen is that the words "enter keyword" disappears as soon as someone clicks in the search box so that they can enter the keyword they would like to search for. This is what I have so far - $boxContent .= tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords', 'enter keyword', 'size="12" maxlength="30" ') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>'; If you look at lands' end's web site, their search box behaves the way I want the oscMax search box to behave. With my solution so far, the person needs to highlight "enter keyword" and manually delete it before they type in the keyword they want to search on. All pointers are greatly appreciated. Thank you! Barb |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to modify the Search box? | mjfontec | osCMax v2 Customization/Mods | 1 | 03-08-2007 04:13 PM |
| How to have Quick Search also search in Descriptions | ozstar | osCommerce 2.2 Modification Help | 1 | 12-09-2005 12:45 PM |
| Modify this... | tonic | osCommerce 2.2 Modification Help | 1 | 01-11-2005 08:19 AM |
| Full text search in advanced search | Anonymous | osCMax v1.7 Discussion | 0 | 04-15-2004 02:00 PM |
| How to make search box also search descriptions | marco6090 | osCommerce 2.2 Modification Help | 0 | 01-06-2003 05:31 AM |