Hi all, first post here, I don't have too much knowledge about php but trying to get around :)
So my question is about the quick horizontal search ( http://www.oscommerce.com/community/contributions,4456 )
It works fine, but I want it to make the search box automatically resizable to its max length depending on window size.
I tried to add a width=100% but the problem is that it kicks the dropdown category menu and the GO button to the next line, and the text I put in front goes on the line before the search box.
is there any way around this? Thanks!
here's the code
$sts->start_capture();
echo "\n<!-- Search -->\n";
$hide = tep_hide_session_id();
echo tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => 'All Categories'))));
echo '<form name="quick_find" method="get" action="' . tep_href_link (FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false) . '">';
echo $hide . '<input type="text" name="keywords" onFocus=this.value="" size="20" style="width:100%;" maxlength="30" value="' . BOX_SEARCH_TEXT . '"> ';
echo '<input type="submit" value="Go"> <a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '">' . BOX_SEARCH_ADVANCED_SEARCH . tep_draw_hidden_field('search_in_description', '1') . tep_draw_hidden_field('inc_subcat', '1') . '</a>';
echo '</form>';
echo "<!-- End Search -->\n";
$sts->stop_capture('hsearch');