search-theme-form.tpl のカスタマイズ バージョンを使用しています。検索ボックスを使用すると、検索ページに転送されます。しかし、検索は実際には行われません。ただし、検索結果ページの検索ボックスは機能します。これは私の search-them-form.tpl.php ファイルです ( demo :
<input type="text" name="search_theme_form_keys" id="edit-search-theme-form-keys" value="Search" title="Enter the terms you wish to search for" class="logininput" height="24px" onblur="restoreSearch(this)" onfocus="clearInput(this)" />
  <input type="submit" name="op" id="edit-submit" value="" class="form-submit" style="display: none;" />
  <input type="hidden" name="form_token" id="edit-search-theme-form-form-token" value="<?php print drupal_get_token('search_theme_form'); ?>" />
  <input type="hidden" name="form_id" id="edit-search-theme-form" value="search_theme_form" />
関連するjavascriptファイルもあります。私はそれがコードからかなり明確に使用されていると思います:
 function trim(str) {  
     return str.replace(/^\s+|\s+$/g, '');  
 }  
 function clearInput(e) {  
        e.value="";                // clear default text when clicked  
    e.className="longininput_onfocus"; //change class
 }  
 function restoreSearch(e) {  
    if (trim(e.value) == '') {  
        {
   e.value="Search";             // reset default text onBlur 
         e.className="logininput";        //reset class
  } 
    }  
 }
何が問題で、どうすれば修正できますか?