User:Ruiz~enwiki/monobook.js

// // User:Ruiz/monobook.js v.2005.07.28 // Using User:Pybalo/monobook.js (w:es) v0.2:2004.07.30 // and Usuario:Comae/monobook.js (w:es) // // For details: http://es.wikipedia.org/wiki/Wikipedia:Botonera //

/*********** Botonera ***********/ window.onload = loadButtons;

function goSearch(i) { urls = new Array(    "http://es.wikipedia.org/wiki/",     "http://de.wikipedia.org/wiki/",    "http://fr.wikipedia.org/wiki/",    "http://buscon.rae.es/draeI/SrvltGUIBusUsual?TIPO_HTML=2&TIPO_BUS=2&LEMA=",    "http://google.com/search?q="  );

var text = document.getElementById("searchInput"); window.open(urls[i] + escape(text.value)); }

function buttonCode(strCode) { return ' '; }

function loadButtons { var btSearch = ' '; btSearch += buttonCode('onclick="goSearch(0)" value="w:ES" title="Wikipedia in Spanish"'); btSearch += buttonCode('onclick="goSearch(1)" value="w:DE" title="Wikipedia in German"'); btSearch += buttonCode('onclick="goSearch(2)" value="w:FR" title="Wikipedia in French"'); btSearch += buttonCode('onclick="goSearch(3)" value="DRAE" title="Diccionario de la Real Academia Española"'); btSearch += buttonCode('onclick="goSearch(4)" value="Google"');

var boxSearch = document.getElementById("searchform"); if (boxSearch) boxSearch.innerHTML += btSearch;

}

/*********** Fin de botonera ************/