JavaScript на wap59.ru
Скрипт поиска
<SCRIPT LANGUAGE="JavaScript">
document.write('<form name="metasearch">Поиск:<br/><input name="query" type="text" size="18" maxlength="100" value=""><br/><select name="engine"><option value="gwap">Google (Wap)</option><option value="gweb">Google (Web)</option><option value="gim">Google (Картинки)</option><option value="ws">WapStart</option><option value="wl">WapLook</option><option value="aport">Aport</option><option value="yandex">Yandex</option><option value="rambler">Rambler</option><option value="mail">Mail</option><option value="yahoo">Yahoo</option><option value="wf">Поиск файлов</option><option value="wiki">Википедия</option></select><br/><input type="button" value="Искать" onClick="search();"></form>')
function search() {t = document.metasearch.query.value;
s = document.metasearch.engine[document.metasearch.engine.selectedIndex].value;
if (s == "gwap") {location.href = "http://www.google.com/xhtml/search?channel=bh&mrestrict=xhtml&site=mobile&q="+ t;}
if (s == "gweb") {location.href = "http://www.google.com/xhtml/search?channel=bh&mrestrict=xhtml&site=search&q="+ t;}
if (s == "gim") {location.href = "http://www.google.com/xhtml/search?channel=bh&mrestrict=xhtml&site=images&q="+ t;}
if (s == "ws") {location.href = "http://wap.search.wapstart.ru/find/?sf="+ t;}
if (s == "wl") {location.href = "http://look.su/s.cgi?iN="+ t;}
if (s == "aport") {location.href = "http://sm.aport.ru/scripts/template.dll?That=std&r="+ t;}
if (s == "yandex") {location.href = "http://www.yandex.ru/yandsearch?text="+ t;}
if (s == "rambler") {location.href = "http://search.rambler.ru/cgi-bin/rambler_search?words="+ t;}
if (s == "mail") {location.href = "http://go.mail.ru/search?lfilter=y&q="+ t;}
if (s == "yahoo") {location.href = "http://search.yahoo.com/bin/search?p=" + t;}
if (s == "wf") {location.href = "http://wap.wlink.ru/files/?nf=15&q=" + t;}
if (s == "wiki") {location.href = "http://ru.wikipedia.org/w/index.php?title=Special:Search&search=" + t;}}
</SCRIPT>
<noscript>
Поиск по wap(google):
<form method="get" action="http://wap.google.com/xhtml">
<input type="text" name="q" maxlength="2048" size="15" value=""/>
<input type="hidden" name="hl" value="ru"/>
<input type="hidden" name="lr" value=""/>
<input align="left" type="submit" name="btnG" value="Найти"/>
</form>
</noscript>
Как установить?

Пример:
<<Назад
<<Главная