MediaWiki

Monobook.js: Difference between revisions

No edit summary
No edit summary
Line 5: Line 5:
  {
  {
  document.getElementById('searchBody').innerHTML+='<div>'+
  document.getElementById('searchBody').innerHTML+='<div>'+
  '<FORM method=get action="http://www.google.com/search">'+
  '<form action="http://" id="searchbox_014896513456545327470:ghkptjyj_oe">'+
  '<input type=hidden name="ie" value="UTF-8" /><input type=hidden name="oe" value="UTF-8" />'+
  '<input type="hidden" name="cx" value="014896513456545327470:ghkptjyj_oe" />'+
  '<INPUT id="searchInput" name="q" type="text" accesskey="f" value="" />'+
  '<input type="hidden" name="cof" value="FORID:11" />'+
  '<input type="hidden" name="domains" value="vanipedia.org" />'+
  '<input type="text" name="q" size="25" />'+
  '<input type=radio name=sitesearch value="">Web'+
  '<input type="submit" name="sa" value="Search" /></FORM>'=
'<input type=radio name=sitesearch value="vanipedia.org" checked />WP'+
  '<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_014896513456545327470%3Aghkptjyj_oe&lang=en"></script></div>';
  '<INPUT type="submit" name="btnG" VALUE="Google Search"  /></FORM></div>';
  }
  }
  addOnloadHook(install_search);
  addOnloadHook(install_search);

Revision as of 19:07, 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 action="http://" id="searchbox_014896513456545327470:ghkptjyj_oe">'+
 '<input type="hidden" name="cx" value="014896513456545327470:ghkptjyj_oe" />'+
 '<input type="hidden" name="cof" value="FORID:11" />'+
 '<input type="text" name="q" size="25" />'+
 '<input type="submit" name="sa" value="Search" /></FORM>'=
 '<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_014896513456545327470%3Aghkptjyj_oe&lang=en"></script></div>';
 }
 addOnloadHook(install_search);