User:Daniel Mietchen/searchbox.js: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Daniel Mietchen
m (started with content from http://en.wikipedia.org/wiki/User:Henrik/sandbox/google-search)
 
imported>Daniel Mietchen
m (adapting to CZ)
 
Line 6: Line 6:
  '<input type=hidden name="ie" value="UTF-8" /><input type=hidden name="oe" value="UTF-8" />'+
  '<input type=hidden name="ie" value="UTF-8" /><input type=hidden name="oe" value="UTF-8" />'+
  '<INPUT id="searchInput" name="q" type="text" accesskey="f" value="" />'+
  '<INPUT id="searchInput" name="q" type="text" accesskey="f" value="" />'+
  '<input type="hidden" name="domains" value="en.wikipedia.org" />'+
  '<input type="hidden" name="domains" value="en.citizendium.org" />'+
  '<input type=radio name=sitesearch value="">Web'+
  '<input type=radio name=sitesearch value="">Web'+
  '<input type=radio name=sitesearch value="en.wikipedia.org" checked />WP'+
  '<input type=radio name=sitesearch value="en.citizendium.org" checked />CZ'+
  '<INPUT type="submit" name="btnG" VALUE="Google Search"  /></FORM></div>';
  '<INPUT type="submit" name="btnG" VALUE="Google Search"  /></FORM></div>';
  }
  }
  addOnloadHook(install_search);
  addOnloadHook(install_search);

Latest revision as of 05:15, 8 September 2009

 // from [[User:Henrik/sandbox/google-search]] at Wikipedia (please include this line)
 function install_search()
 {
 document.getElementById('searchBody').innerHTML+='<div>'+
 '<FORM method=get action="http://www.google.com/search">'+
 '<input type=hidden name="ie" value="UTF-8" /><input type=hidden name="oe" value="UTF-8" />'+
 '<INPUT id="searchInput" name="q" type="text" accesskey="f" value="" />'+
 '<input type="hidden" name="domains" value="en.citizendium.org" />'+
 '<input type=radio name=sitesearch value="">Web'+
 '<input type=radio name=sitesearch value="en.citizendium.org" checked />CZ'+
 '<INPUT type="submit" name="btnG" VALUE="Google Search"  /></FORM></div>';
 }
 addOnloadHook(install_search);