MediaWiki

Monobook.js: Difference between revisions

(New page: →‎Deprecated; use [[MediaWiki:common.js]]: // User:Henrik/sandbox/google-search (please include this line) function install_search() { document.getElementById('searchBody').inne...)
 
No edit summary
Line 8: Line 8:
  '<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="vanipedia.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="vanipedia.org" checked />WP'+
  '<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);

Revision as of 19:02, 14 March 2008

/* Deprecated; use [[MediaWiki:common.js]] */

// [[User:Henrik/sandbox/google-search]] (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="vanipedia.org" />'+
 '<input type=radio name=sitesearch value="">Web'+
 '<input type=radio name=sitesearch value="vanipedia.org" checked />WP'+
 '<INPUT type="submit" name="btnG" VALUE="Google Search"  /></FORM></div>';
 }
 addOnloadHook(install_search);