MediaWiki

Monobook.js: Difference between revisions

No edit summary
No edit summary
Line 4: Line 4:
  function install_search()
  function install_search()
  {
  {
  document.getElementById('searchBody').innerHTML+='<div>'+
  document.getElementById('searchBody').innerHTML+='<script type="text/javascript" src="'
'<form action="http://" id="searchbox_014896513456545327470:ghkptjyj_oe">'+
  + 'http://vanipedia.org/w/index.php?title=Mediawiki:GoogleSearch.js'
  '<input type="hidden" name="cx" value="014896513456545327470:ghkptjyj_oe" />'+
  + '&action=raw&ctype=text/javascript"></' + 'script>';
'<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);
  addOnloadHook(install_search);

Revision as of 20:54, 14 March 2008

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

// [[User:Henrik/sandbox/google-search]] (please include this line)
 function install_search()
 {
 document.getElementById('searchBody').innerHTML+='<script type="text/javascript" src="'
 + 'http://vanipedia.org/w/index.php?title=Mediawiki:GoogleSearch.js'
 + '&action=raw&ctype=text/javascript"></' + 'script>';
 }
 addOnloadHook(install_search);