dEatH
04-22-2007, 10:32
Bu script ile sitenize aralarında Yahoo ve Altavista'nında olduğu bir çok arama motoru ekleyebilirsiniz.
<script>
<!-- START HIDE
var MAX_ENGINES = 35;
var tp='';
var tpp='';
var find = 'hunt';
var hold=0;
var hold2=0;
var gog=0;
var ap='';
function MakeArray(n) {
for (var i = 1; i <= n; i++) {
this[i] = 0;
}
this.maxlen = n;
this.len = 0;
return this;
}
var engs = new MakeArray(MAX_ENGINES);
function find_substring(needle, haystack) {
var i, needlen = needle.length, haylen = haystack.length;
for (i=0; i<=haylen-needlen; i++) {
if (needle == haystack.substring(i,i+needlen))
return i;
}
return false;
}
function Engine(name, opts, home, search) {
var gotcha = find_substring(find, search);
this.name = name;
this.opts = opts;
this.home = home;
this.pre_gotcha = search.substring(0,gotcha);
this.post_gotcha= search.substring(gotcha+find.length, search.length);
}
function Add(name, opts, home, search) {
engs.len++;
if (engs.len <= engs.maxlen) {
engs[engs.len] = new Engine(name, opts, home, search)
}
else {
alert ('Better increase MAX_ENGINES: ' + engs.Len + '>' + engs.maxlen)
}
}
function DisplayForm() {
document.writeln('<CENTER><FORM Name=Gotchaform OnSubmit="HandleForm(this); return false">');
document.writeln('<table border=0 bordercolor=black width=325 bgcolor=#FFCC33><tr><td width="125"><b><font size=2 face="arial">Aranacak Kelime:</b></td> <td width="200"><INPUT size=25 name="query"></td></tr></table>');
document.writeln(' <b><font size=2 face="arial">Nerede aranacak?</b> <SELECT name="service">');
for (i=1; i <= engs.len; i++) {
document.writeln("<OPTION " + engs[i].opts + "> " + engs[i].name);
}
document.writeln('</SELECT> <br><input type=submit value="Ara ve Bul"><br><a href="http://www.samsunspor.kulubu.com" target="http://www.samsunspor.kulubu.com" >http://www.samsunspor.kulubu.com</a><br>');
document.writeln('</FORM> </CENTER>');
document.Gotchaform.query.focus()
}
function HandleForm(form){
var i, newq="", oldq=form.query.value;
for (i=0; i<oldq.length; i++) { // compress [ ]+ into \+
var thischar = oldq.charAt(i);
if (thischar =="+")newq += "%2B";
else
if (thischar != ' ')
newq += thischar;
else if (lastchar != ' ')
newq += '+';
lastchar = thischar;
}
var eng = engs[1+form.service.selectedIndex];
// Window
search=window.open(newq ? eng.pre_gotcha + newq + eng.post_gotcha : eng.home,"SmartSearch","scrollbars=yes,toolbar=yes,location=yes,directorie s=yes,status=yes,menubar=yes,resizable=yes,width=' 100%',hight='100%'");
}
Add("Dünya - AltaVista","SELECTED","http://altavista.digital.com/",
"http://altavista.digital.com/cgi-bin...b&fmt=d&q=hunt");
Add("Dünya - AltaVista (UseNet)","","http://altavista.digital.com/",
"http://altavista.digital.com/cgi-bin...s&fmt=d&q=hunt" );
Add("Dünya - Yahoo!","","http://www.yahoo.com/",
"http://search.yahoo.com/bin/search?p=hunt" );
Add("Dünya - DejaNews","","http://www.dejanews.com/",
"http://search.dejanews.com/nph-dnque...ent&maxhits=25");
Add("Dünya - HotBot","","http://www.search.hotbot.com",
"http://www.search.hotbot.com/search.html?MT=hunt&DC=25");
Add("Dünya - Infoseek UltraSmart","","http://www.infoseek.com/Home?pg=Home.html&sv=A2",
"http://www.infoseek.com/Titles?qt=hunt&col=WW&sv=A2");
Add("Dünya - Excite","","http://www.excite.com/",
"http://www.excite.com/search.gw?sear...tegory=default");
Add("Dünya - Infoseek (Usenet)","","http://www.infoseek.com",
"http://www.infoseek.com/Titles?qt=hunt&col=NN&sv=A2");
Add("Dünya - Lycos","","http://www.lycos.com/",
"http://www.lycos.com/cgi-bin/pursuit...t&backlink=639");
Add("Dünya - Magellan","","http://www.mckinley.com/",
"http://www.mckinley.com/extsearch.cgi?query=hunt");
Add("Dünya - OpenText","","http://search.opentext.com",
"http://search.opentext.com/omw/simpl...=hunt&mode=and");
Add("Dünya - WebCrawler","","http://webcrawler.com/",
"http://webcrawler.com/cgi-bin/WebQue...unt&maxHits=25");
Add("Dünya - Yahoo (PixSearch)","","http://ipix.yahoo.com/",
"http://ipix.yahoo.com/cgi-bin/y-new/...keyword&q=hunt");
// Software
Add("Yazılım - ZDNet","","http://www.zdnet.com/",
"http://www6.zdnet.com/cgi-bin/texis/...ple&Utext=hunt");
Add("Yazılım - DaveCentral","","http://www.davecentral.com/",
"http://www.davecentral.com/cgi-bin/search.pl?query=hunt");
Add("Yazılım - Filez","","http://www.filez.com/",
"http://filez.com/cgi/filez.cgi?query...d&doit=Search/");
Add("Yazılım - Shareware.com","","http://www.shareware.com/",
"http://search.shareware.com/code/eng...All-Categories");
Add("Yazılım - PC game finder","","http://www.pcgame.com/","http://www.pcgame.com/finder/search.cgi?key=hunt");
// Denmark
Add("Danimarka - AltaVista (DK)","","http://altavista.telia.com/cgi-bin/telia","http://www.danielsen.com/cgi/thornew.cgi?country=danmark&cnt=50&q=hunt");
Add("Danimarka - Jubii","","http://www.jubii.dk/","http://soeg.jubii.dk/resultat.asp?startnummer=1&antalresultater=30&soegeord=hunt");
Add("Danimarka - Thor","","http://www.danielsen.com/thor/",
"http://www.danielsen.com/cgi/thornew...&cnt=50&q=hunt");
DisplayForm();
// STOP HIDE -->
</script>Aynı anda 4 arama motorunda arama yaptırabilen kullanışlı bir script.
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
Yahoo = "http://search.yahoo.com/bin/search?p=";
Alta = "http://www.altavista.digital.com/cgi...g=q&what=web&q=";
Open = "http://search.opentext.com/omw/simplesearch?SearchFor=";
Lycos = "http://www.lycos.com/cgi-bin/pursuit?query=";
Crawler = "http://www.webcrawler.com/cgi-bin/WebQuery?searchText=";
InfoSeek = "http://guide-p.infoseek.com/Titles?qt=";
DejaNews = "http://search.dejanews.com/nph-dnquery.xp?query=";
Inktomi = "http://204.161.74.8:1234/query/?query=";
****Crawler = "http://search.go2net.com/crawler?general=";
SavySearch = "http://guaraldi.cs.colostate.edu:2000/search?KW=";
Excite = "http://www.excite.com/search.gw?sear...Concept&search=";
Magellan = "http://www.mckinley.com/searcher.cgi?query=";
Point = "http://point.lycos.com/cgi-bin/pursuit?query=";
Galaxy = "http://www.einet.net/cgi-bin/wais-text-multi?keywords=";
var got=0;
var url = "";
var plus="";
var mag="";
function search4(item){
stringPlus();
resultsWindow=window.open();
resultsWindow.document.open();
resultsWindow.document.write("<head><title>Close this window "
+ "to return to Search Page</title></head>"
+ "<FRAMESET ROWS=50%,50%><FRAMESET COLS=50%,50%>"
+ "<FRAME NAME='frame0' SRC='" + computeFrameSrc(0) + "'>"
+ "<FRAME NAME='frame1' SRC='" + computeFrameSrc(1) + "'>"
+ "</FRAMESET><FRAMESET COLS=50%,50%><FRAME NAME='frame2' "
+ "SRC='" + computeFrameSrc(2) + "'><FRAME NAME='frame3' "
+ "SRC='" + computeFrameSrc(3) + "'></FRAMESET></FRAMESET>");
resultsWindow.document.close();
got = 0;
}
function search2(item){
stringPlus();
resultsWindow=window.open();
resultsWindow.document.open();
resultsWindow.document.write("<head><title>Close this window "
+ "to return to Total search</title></head><FRAMESET ROWS=50%,50%>"
+ "<FRAME NAME='frame0' SRC='" + computeFrameSrc(0) + "'><FRAME "
+ "NAME='frame1' SRC='" + computeFrameSrc(1) + "'></FRAMESET>");
resultsWindow.document.close();
got = 0;
}
function stringPlus() {
for (var j=0; j < window.document.choose4.text.value.length; j++) {
if (window.document.choose4.text.value.charAt(j) == " ")
mag += "+";
else mag += window.document.choose4.text.value.charAt(j);}
}
function numChecked(item) {
plus = escape(item.text.value);
var h=0;
num=0;
for (var l=0; l < item.check1.length; l++) {
if (item.check1[l].checked) {
h++;
if (h++ <= 4){
if (l == "0"){
num = 1;}
else if (l == "1") num = 2;
else if (l == "2") num = 3;
else if (l == "3") num = 4;
else if (l == "4") num = 5;
else if (l == "5") num = 6;
else if (l == "6") num = 7;
else if (l == "7") num = 8;
else if (l == "8") num = 9;
else if (l == "9") num = 10;
else if (l == "10") num = 11;
else if (l == "11") num = 12;
else if (l == "12") num = 13;
}
}
}
if (h == 2)
Results(num-1);
else if (h == 4)
search2(item);
else
search4(item);
}
function computeFrameSrc(num) {
var k=-1;
for (var j=got; j < document.choose4.check1.length; j++) {
if (document.choose4.check1[j].checked){
k++;
if (k++ <= num){
if (j == "0"){
url = Yahoo + plus;
got = 1;}
else if (j == "1"){
url = Magellan + mag;
got = 2;}
else if (j == "2"){
url = Point + plus;
got = 3;}
else if (j == "3"){
url = Alta + plus + "&mode=and";
got = 4;}
else if (j == "4"){
url = Open + plus + "&mode=and";
got = 5;}
else if (j == "5"){
url = Lycos + plus + "&backlink=217&maxhits=25";
got = 6;}
else if (j == "6"){
url = Excite + plus + "&category=default&mode=relevance&showqbe=1&display=html3,hb";
got = 7;}
else if (j == "7"){
url = Crawler + plus + "&maxHits=25";
got = 8;}
else if (j == "8"){
url = InfoSeek + plus + "&col=WW";
got = 9;}
else if (j == "9"){
url = DejaNews + plus + "&defaultOp=AND&svcclass=dncurrent&maxhits=25";
got = 10;}
else if (j == "10"){
url = Inktomi + plus + "&hits=25&disp=Text+Only";
got = 11;}
else if (j == "11"){
url = ****Crawler + plus + "&method=0&target=®ion=0&rpp=20&timeout=5&hpe=10";
got = 12;}
else if (j == "12"){
url = SavySearch + plus + "&classic=on&t1=x&Boolean=AND&Hits=10&Mode=MakePlan&df=normal&AutoStep=on&AutoInt=on&lb=1";
got = 13;}
return url;
}
}
}
url = "javascript:void(0)";
return url;
}
function Results(place){
stringPlus();
resultsWin = open("","results");
if (place == "0")
url = Yahoo + plus;
else if (place == "1")
url = Magellan + mag;
else if (place == "2")
url = Point + plus;
else if (place == "3")
url = Alta + plus + "&mode=and";
else if (place == "4")
url = Open + plus + "&mode=and";
else if (place == "5")
url = Lycos + plus + "&backlink=217&maxhits=25";
else if (place == "6")
url = Excite + plus + "&category=default&mode=relevance&showqbe=1&display=html3,hb";
else if (place == "7")
url = Crawler + plus + "&maxHits=25";
else if (place == "8")
url = InfoSeek + plus + "&col=WW";
else if (place == "9")
url = DejaNews + plus + "&defaultOp=AND&svcclass=dncurrent&maxhits=25";
else if (place == "10")
url = Inktomi + plus + "&hits=25&disp=Text+Only";
else if (place == "11")
url = ****Crawler + plus + "&logic=0®ion=The+World&orgType=Any&maxwait=1&score=0";
else if (place == "12")
url = SavySearch + plus + "&classic=on&t1=x&Boolean=AND&Hits=10&Mode=MakePlan&df=normal&AutoStep=on&AutoInt=on&lb=1";
resultsWin.location = url;
}
// End -->
</script>Kendi sitenize ekleyebileceğiniz arama motoru scripti
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Dion (biab@iinet.net.au) -->
<!-- Web Site: http://www.iinet.net.au/~biab -->
<!-- Begin
var item = new Array();
/* Here is where all the magic happens.
Just enter as many additional pages that
that you want to search, then fill in the
additional listings for each page.
*/
// "Page Name","path","Page Title","Many,Key,Words","Descriptive Comments"
c=0; item[c]=new Array("index.html","","DemoSite","index,main,start,home,front","Demonstration search engine data about an imagined but probable internet site.");
c++; item[c]=new Array("about.htm","","About Me","about,author,contact,email,who","Contact details and general information about the creator of the site and what the site is about.");
c++; item[c]=new Array("links.htm","","Links page","links,more,where,similar,friends","Links to my favourite sites which I find interesting. Other friends sites which have similar interests to my own.");
c++; item[c]=new Array("main.htm","main/","Main Page","content,main,focus","The main part of my site which contains what you have come to see. Lots of stuff like that and more great things. All in a sub directory.");
c++; item[c]=new Array("logo.jpg","main/images/","Link Logo","link,image,logo,graphic","The logo.jpg is just a small image which you can place on your site as a link to me. It's in a second level subdirectory.");
page="<html><head><title>Search Results</title></head><body bgcolor='white'><center><table border=0 cellspacing=10 width=80%>";
function search(frm) {
win = window.open("","","scrollbars");
win.document.write(page);
txt = frm.srchval.value.split(" ");
fnd = new Array(); total=0;
for (i = 0; i < item.length; i++) {
fnd[i] = 0; order = new Array(0, 4, 2, 3);
for (j = 0; j < order.length; j++)
for (k = 0; k < txt.length; k++)
if (item[i][order[j]].toLowerCase().indexOf(txt[k]) > -1 && txt[k] != "")
fnd[i] += (j+1);
}
for (i = 0; i < fnd.length; i++) {
n = 0; w = -1;
for (j = 0;j < fnd.length; j++)
if (fnd[j] > n) { n = fnd[j]; w = j; };
if (w > -1) total += show(w, win, n);
fnd[w] = 0;
}
win.document.write("</table><br>Toplam Sonuç: "+total+"<br></body></html>");
win.document.close();
}
function show(which,wind,num) {
link = item[which][1] + item[which][0];
line = "<tr><td><a href='"+link+"'>"+item[which][2]+"</a> Score: "+num+"<br>";
line += item[which][4] + "<br>"+link+"</td></tr>";
wind.document.write(line);
return 1;
}
// End -->
</script>Geçerli web sayfanızın içerisinde arama yaptırabileceğiniz script:
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Dion (biab@iinet.net.au) -->
<!-- Web Site: http://www.iinet.net.au/~biab -->
<!-- Begin
var item = new Array();
/* Here is where all the magic happens.
Just enter as many additional pages that
that you want to search, then fill in the
additional listings for each page.
*/
// "Page Name","path","Page Title","Many,Key,Words","Descriptive Comments"
c=0; item[c]=new Array("index.html","","DemoSite","index,main,start,home,front","Demonstration search engine data about an imagined but probable internet site.");
c++; item[c]=new Array("about.htm","","About Me","about,author,contact,email,who","Contact details and general information about the creator of the site and what the site is about.");
c++; item[c]=new Array("links.htm","","Links page","links,more,where,similar,friends","Links to my favourite sites which I find interesting. Other friends sites which have similar interests to my own.");
c++; item[c]=new Array("main.htm","main/","Main Page","content,main,focus","The main part of my site which contains what you have come to see. Lots of stuff like that and more great things. All in a sub directory.");
c++; item[c]=new Array("logo.jpg","main/images/","Link Logo","link,image,logo,graphic","The logo.jpg is just a small image which you can place on your site as a link to me. It's in a second level subdirectory.");
page="<html><head><title>Search Results</title></head><body bgcolor='white'><center><table border=0 cellspacing=10 width=80%>";
function search(frm) {
win = window.open("","","scrollbars");
win.document.write(page);
txt = frm.srchval.value.split(" ");
fnd = new Array(); total=0;
for (i = 0; i < item.length; i++) {
fnd[i] = 0; order = new Array(0, 4, 2, 3);
for (j = 0; j < order.length; j++)
for (k = 0; k < txt.length; k++)
if (item[i][order[j]].toLowerCase().indexOf(txt[k]) > -1 && txt[k] != "")
fnd[i] += (j+1);
}
for (i = 0; i < fnd.length; i++) {
n = 0; w = -1;
for (j = 0;j < fnd.length; j++)
if (fnd[j] > n) { n = fnd[j]; w = j; };
if (w > -1) total += show(w, win, n);
fnd[w] = 0;
}
win.document.write("</table><br>Toplam Sonuç: "+total+"<br></body></html>");
win.document.close();
}
function show(which,wind,num) {
link = item[which][1] + item[which][0];
line = "<tr><td><a href='"+link+"'>"+item[which][2]+"</a> Score: "+num+"<br>";
line += item[which][4] + "<br>"+link+"</td></tr>";
wind.document.write(line);
return 1;
}
// End -->
</script>Kendi siteniz içerisinde arama yaptırabileceğiniz bir javascript daha:
<SCRIPT LANGUAGE="JAVASCRIPT">
/*JS Search Engine 1.0
A JavaScript search engine using multiple keywords!
Written by:
___ __ ___ ____ __ __ __
| / \ | | | | \ \ /\ /
| |--| |--/ |-- | | \ / \ /
|__| | | | \ |___ |_/ \/ \/ .
I, Jared W, have made this script public domain, that is, FREE TO ANYONE!
However, you must keep this header and all comments/notes intact on this script!
Otherwise, I give you permission to use and edit this script.
You may not sell this script or call it your own, even if you have edited it.
Thank you.
The JavaScript Village
http://www.tcis.net/~walczak/javascript/index.html
*/
var found1="<h3>Search Results</h3><BR><UL>"
var found2=""
var found3
/*IMPORTANT! You must change the number after the variable 'pagestosearch.' The number should be the amount of pages in your
search. Since numbers start with 0 in JavaScript, this is a little strange. Lets say you have five pages (pages[0], pages[1], pages[2], pages[3], and pages[4]). The last number is four. Therefore, you would type '4' after 'pagestosearch.'*/
pagestosearch=2
function searchdata (title, keyword1, keyword2, keyword3, keyword4, description, url)
{
this.title = title
this.keyword1 = keyword1
this.keyword2 = keyword2
this.keyword3 = keyword3
this.keyword4 = keyword4
this.description = description
this.url = url
}
pages = new Array()
pages[0] = new searchdata("JavaScript Village", "javascript", "javascripts", "free", "web", "Free JavaScripts and more!", "http://www.tcis.net/~walczak/javascript/index.html")
pages[1] = new searchdata("Yahoo!", "yahoo", "search", "search engine", "web", "A search engine like this, but runs on CGI", "http://www.yahoo.com")
pages[2] = new searchdata("Ebay", "ebay", "auction", "auctions", "buy", "The largest online auction", "http://www.ebay.com")
/*To add another page, just copy the below text.
//START CUT
pages[nextnumber] = new searchdata("title", "keyword1", "keyword2", "keyword3", "keyword4", "description", "url")
//END CUT*/
//DO NOT DELETE THE 'num=0.'
num=0
function findpages()
{
while (num <= pagestosearch)
{
if ( document.search.searchwords.value == pages[num].keyword1 || document.search.searchwords.value == pages[num].keyword2 || document.search.searchwords.value == pages[num].keyword3 || document.search.searchwords.value == pages[num].keyword4 )
{
found2 = "<LI><A HREF='"+pages[num].url+"' target='main'>"+ pages[num].title +"</A><BR><I>"+pages[num].keyword1+" "+pages[num].keyword2+" "+pages[num].keyword3+" "+pages[num].keyword4+"</I><BR>"+pages[num].description+""
found1 = found1+found2
found2 = ""
found3=found3+1
num=num+1
}
else
num=num+1
}
}
function listpages()
{
var OpenWindow=window.open("", "newwin", "height=550,width=450,scrollbars=yes,");
OpenWindow.document.write("<HTML>")
OpenWindow.document.write("<HEAD>")
OpenWindow.document.write("<TITLE>Arama Sonucu</TITLE>")
OpenWindow.document.write("</HEAD><BODY>")
OpenWindow.document.write("<font size=+1>Searched for </font>")
OpenWindow.document.write("<font size=+1><I>" + document.search.searchwords.value + "</I></font><P>")
OpenWindow.document.write("<font size=+0>" + found1 + "</font><P>")
OpenWindow.document.write("<font size=+0><A HREF='' onClick='self.close()'>Pencereyi Kapat</A></font><HR>")
OpenWindow.document.write("</BODY>")
OpenWindow.document.write("</HTML>")
}
function clearsearch()
{
found1="<h3>Search Results</h3><BR><UL>"
found2=""
num=0
}
</SCRIPT>
<script>
<!-- START HIDE
var MAX_ENGINES = 35;
var tp='';
var tpp='';
var find = 'hunt';
var hold=0;
var hold2=0;
var gog=0;
var ap='';
function MakeArray(n) {
for (var i = 1; i <= n; i++) {
this[i] = 0;
}
this.maxlen = n;
this.len = 0;
return this;
}
var engs = new MakeArray(MAX_ENGINES);
function find_substring(needle, haystack) {
var i, needlen = needle.length, haylen = haystack.length;
for (i=0; i<=haylen-needlen; i++) {
if (needle == haystack.substring(i,i+needlen))
return i;
}
return false;
}
function Engine(name, opts, home, search) {
var gotcha = find_substring(find, search);
this.name = name;
this.opts = opts;
this.home = home;
this.pre_gotcha = search.substring(0,gotcha);
this.post_gotcha= search.substring(gotcha+find.length, search.length);
}
function Add(name, opts, home, search) {
engs.len++;
if (engs.len <= engs.maxlen) {
engs[engs.len] = new Engine(name, opts, home, search)
}
else {
alert ('Better increase MAX_ENGINES: ' + engs.Len + '>' + engs.maxlen)
}
}
function DisplayForm() {
document.writeln('<CENTER><FORM Name=Gotchaform OnSubmit="HandleForm(this); return false">');
document.writeln('<table border=0 bordercolor=black width=325 bgcolor=#FFCC33><tr><td width="125"><b><font size=2 face="arial">Aranacak Kelime:</b></td> <td width="200"><INPUT size=25 name="query"></td></tr></table>');
document.writeln(' <b><font size=2 face="arial">Nerede aranacak?</b> <SELECT name="service">');
for (i=1; i <= engs.len; i++) {
document.writeln("<OPTION " + engs[i].opts + "> " + engs[i].name);
}
document.writeln('</SELECT> <br><input type=submit value="Ara ve Bul"><br><a href="http://www.samsunspor.kulubu.com" target="http://www.samsunspor.kulubu.com" >http://www.samsunspor.kulubu.com</a><br>');
document.writeln('</FORM> </CENTER>');
document.Gotchaform.query.focus()
}
function HandleForm(form){
var i, newq="", oldq=form.query.value;
for (i=0; i<oldq.length; i++) { // compress [ ]+ into \+
var thischar = oldq.charAt(i);
if (thischar =="+")newq += "%2B";
else
if (thischar != ' ')
newq += thischar;
else if (lastchar != ' ')
newq += '+';
lastchar = thischar;
}
var eng = engs[1+form.service.selectedIndex];
// Window
search=window.open(newq ? eng.pre_gotcha + newq + eng.post_gotcha : eng.home,"SmartSearch","scrollbars=yes,toolbar=yes,location=yes,directorie s=yes,status=yes,menubar=yes,resizable=yes,width=' 100%',hight='100%'");
}
Add("Dünya - AltaVista","SELECTED","http://altavista.digital.com/",
"http://altavista.digital.com/cgi-bin...b&fmt=d&q=hunt");
Add("Dünya - AltaVista (UseNet)","","http://altavista.digital.com/",
"http://altavista.digital.com/cgi-bin...s&fmt=d&q=hunt" );
Add("Dünya - Yahoo!","","http://www.yahoo.com/",
"http://search.yahoo.com/bin/search?p=hunt" );
Add("Dünya - DejaNews","","http://www.dejanews.com/",
"http://search.dejanews.com/nph-dnque...ent&maxhits=25");
Add("Dünya - HotBot","","http://www.search.hotbot.com",
"http://www.search.hotbot.com/search.html?MT=hunt&DC=25");
Add("Dünya - Infoseek UltraSmart","","http://www.infoseek.com/Home?pg=Home.html&sv=A2",
"http://www.infoseek.com/Titles?qt=hunt&col=WW&sv=A2");
Add("Dünya - Excite","","http://www.excite.com/",
"http://www.excite.com/search.gw?sear...tegory=default");
Add("Dünya - Infoseek (Usenet)","","http://www.infoseek.com",
"http://www.infoseek.com/Titles?qt=hunt&col=NN&sv=A2");
Add("Dünya - Lycos","","http://www.lycos.com/",
"http://www.lycos.com/cgi-bin/pursuit...t&backlink=639");
Add("Dünya - Magellan","","http://www.mckinley.com/",
"http://www.mckinley.com/extsearch.cgi?query=hunt");
Add("Dünya - OpenText","","http://search.opentext.com",
"http://search.opentext.com/omw/simpl...=hunt&mode=and");
Add("Dünya - WebCrawler","","http://webcrawler.com/",
"http://webcrawler.com/cgi-bin/WebQue...unt&maxHits=25");
Add("Dünya - Yahoo (PixSearch)","","http://ipix.yahoo.com/",
"http://ipix.yahoo.com/cgi-bin/y-new/...keyword&q=hunt");
// Software
Add("Yazılım - ZDNet","","http://www.zdnet.com/",
"http://www6.zdnet.com/cgi-bin/texis/...ple&Utext=hunt");
Add("Yazılım - DaveCentral","","http://www.davecentral.com/",
"http://www.davecentral.com/cgi-bin/search.pl?query=hunt");
Add("Yazılım - Filez","","http://www.filez.com/",
"http://filez.com/cgi/filez.cgi?query...d&doit=Search/");
Add("Yazılım - Shareware.com","","http://www.shareware.com/",
"http://search.shareware.com/code/eng...All-Categories");
Add("Yazılım - PC game finder","","http://www.pcgame.com/","http://www.pcgame.com/finder/search.cgi?key=hunt");
// Denmark
Add("Danimarka - AltaVista (DK)","","http://altavista.telia.com/cgi-bin/telia","http://www.danielsen.com/cgi/thornew.cgi?country=danmark&cnt=50&q=hunt");
Add("Danimarka - Jubii","","http://www.jubii.dk/","http://soeg.jubii.dk/resultat.asp?startnummer=1&antalresultater=30&soegeord=hunt");
Add("Danimarka - Thor","","http://www.danielsen.com/thor/",
"http://www.danielsen.com/cgi/thornew...&cnt=50&q=hunt");
DisplayForm();
// STOP HIDE -->
</script>Aynı anda 4 arama motorunda arama yaptırabilen kullanışlı bir script.
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
Yahoo = "http://search.yahoo.com/bin/search?p=";
Alta = "http://www.altavista.digital.com/cgi...g=q&what=web&q=";
Open = "http://search.opentext.com/omw/simplesearch?SearchFor=";
Lycos = "http://www.lycos.com/cgi-bin/pursuit?query=";
Crawler = "http://www.webcrawler.com/cgi-bin/WebQuery?searchText=";
InfoSeek = "http://guide-p.infoseek.com/Titles?qt=";
DejaNews = "http://search.dejanews.com/nph-dnquery.xp?query=";
Inktomi = "http://204.161.74.8:1234/query/?query=";
****Crawler = "http://search.go2net.com/crawler?general=";
SavySearch = "http://guaraldi.cs.colostate.edu:2000/search?KW=";
Excite = "http://www.excite.com/search.gw?sear...Concept&search=";
Magellan = "http://www.mckinley.com/searcher.cgi?query=";
Point = "http://point.lycos.com/cgi-bin/pursuit?query=";
Galaxy = "http://www.einet.net/cgi-bin/wais-text-multi?keywords=";
var got=0;
var url = "";
var plus="";
var mag="";
function search4(item){
stringPlus();
resultsWindow=window.open();
resultsWindow.document.open();
resultsWindow.document.write("<head><title>Close this window "
+ "to return to Search Page</title></head>"
+ "<FRAMESET ROWS=50%,50%><FRAMESET COLS=50%,50%>"
+ "<FRAME NAME='frame0' SRC='" + computeFrameSrc(0) + "'>"
+ "<FRAME NAME='frame1' SRC='" + computeFrameSrc(1) + "'>"
+ "</FRAMESET><FRAMESET COLS=50%,50%><FRAME NAME='frame2' "
+ "SRC='" + computeFrameSrc(2) + "'><FRAME NAME='frame3' "
+ "SRC='" + computeFrameSrc(3) + "'></FRAMESET></FRAMESET>");
resultsWindow.document.close();
got = 0;
}
function search2(item){
stringPlus();
resultsWindow=window.open();
resultsWindow.document.open();
resultsWindow.document.write("<head><title>Close this window "
+ "to return to Total search</title></head><FRAMESET ROWS=50%,50%>"
+ "<FRAME NAME='frame0' SRC='" + computeFrameSrc(0) + "'><FRAME "
+ "NAME='frame1' SRC='" + computeFrameSrc(1) + "'></FRAMESET>");
resultsWindow.document.close();
got = 0;
}
function stringPlus() {
for (var j=0; j < window.document.choose4.text.value.length; j++) {
if (window.document.choose4.text.value.charAt(j) == " ")
mag += "+";
else mag += window.document.choose4.text.value.charAt(j);}
}
function numChecked(item) {
plus = escape(item.text.value);
var h=0;
num=0;
for (var l=0; l < item.check1.length; l++) {
if (item.check1[l].checked) {
h++;
if (h++ <= 4){
if (l == "0"){
num = 1;}
else if (l == "1") num = 2;
else if (l == "2") num = 3;
else if (l == "3") num = 4;
else if (l == "4") num = 5;
else if (l == "5") num = 6;
else if (l == "6") num = 7;
else if (l == "7") num = 8;
else if (l == "8") num = 9;
else if (l == "9") num = 10;
else if (l == "10") num = 11;
else if (l == "11") num = 12;
else if (l == "12") num = 13;
}
}
}
if (h == 2)
Results(num-1);
else if (h == 4)
search2(item);
else
search4(item);
}
function computeFrameSrc(num) {
var k=-1;
for (var j=got; j < document.choose4.check1.length; j++) {
if (document.choose4.check1[j].checked){
k++;
if (k++ <= num){
if (j == "0"){
url = Yahoo + plus;
got = 1;}
else if (j == "1"){
url = Magellan + mag;
got = 2;}
else if (j == "2"){
url = Point + plus;
got = 3;}
else if (j == "3"){
url = Alta + plus + "&mode=and";
got = 4;}
else if (j == "4"){
url = Open + plus + "&mode=and";
got = 5;}
else if (j == "5"){
url = Lycos + plus + "&backlink=217&maxhits=25";
got = 6;}
else if (j == "6"){
url = Excite + plus + "&category=default&mode=relevance&showqbe=1&display=html3,hb";
got = 7;}
else if (j == "7"){
url = Crawler + plus + "&maxHits=25";
got = 8;}
else if (j == "8"){
url = InfoSeek + plus + "&col=WW";
got = 9;}
else if (j == "9"){
url = DejaNews + plus + "&defaultOp=AND&svcclass=dncurrent&maxhits=25";
got = 10;}
else if (j == "10"){
url = Inktomi + plus + "&hits=25&disp=Text+Only";
got = 11;}
else if (j == "11"){
url = ****Crawler + plus + "&method=0&target=®ion=0&rpp=20&timeout=5&hpe=10";
got = 12;}
else if (j == "12"){
url = SavySearch + plus + "&classic=on&t1=x&Boolean=AND&Hits=10&Mode=MakePlan&df=normal&AutoStep=on&AutoInt=on&lb=1";
got = 13;}
return url;
}
}
}
url = "javascript:void(0)";
return url;
}
function Results(place){
stringPlus();
resultsWin = open("","results");
if (place == "0")
url = Yahoo + plus;
else if (place == "1")
url = Magellan + mag;
else if (place == "2")
url = Point + plus;
else if (place == "3")
url = Alta + plus + "&mode=and";
else if (place == "4")
url = Open + plus + "&mode=and";
else if (place == "5")
url = Lycos + plus + "&backlink=217&maxhits=25";
else if (place == "6")
url = Excite + plus + "&category=default&mode=relevance&showqbe=1&display=html3,hb";
else if (place == "7")
url = Crawler + plus + "&maxHits=25";
else if (place == "8")
url = InfoSeek + plus + "&col=WW";
else if (place == "9")
url = DejaNews + plus + "&defaultOp=AND&svcclass=dncurrent&maxhits=25";
else if (place == "10")
url = Inktomi + plus + "&hits=25&disp=Text+Only";
else if (place == "11")
url = ****Crawler + plus + "&logic=0®ion=The+World&orgType=Any&maxwait=1&score=0";
else if (place == "12")
url = SavySearch + plus + "&classic=on&t1=x&Boolean=AND&Hits=10&Mode=MakePlan&df=normal&AutoStep=on&AutoInt=on&lb=1";
resultsWin.location = url;
}
// End -->
</script>Kendi sitenize ekleyebileceğiniz arama motoru scripti
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Dion (biab@iinet.net.au) -->
<!-- Web Site: http://www.iinet.net.au/~biab -->
<!-- Begin
var item = new Array();
/* Here is where all the magic happens.
Just enter as many additional pages that
that you want to search, then fill in the
additional listings for each page.
*/
// "Page Name","path","Page Title","Many,Key,Words","Descriptive Comments"
c=0; item[c]=new Array("index.html","","DemoSite","index,main,start,home,front","Demonstration search engine data about an imagined but probable internet site.");
c++; item[c]=new Array("about.htm","","About Me","about,author,contact,email,who","Contact details and general information about the creator of the site and what the site is about.");
c++; item[c]=new Array("links.htm","","Links page","links,more,where,similar,friends","Links to my favourite sites which I find interesting. Other friends sites which have similar interests to my own.");
c++; item[c]=new Array("main.htm","main/","Main Page","content,main,focus","The main part of my site which contains what you have come to see. Lots of stuff like that and more great things. All in a sub directory.");
c++; item[c]=new Array("logo.jpg","main/images/","Link Logo","link,image,logo,graphic","The logo.jpg is just a small image which you can place on your site as a link to me. It's in a second level subdirectory.");
page="<html><head><title>Search Results</title></head><body bgcolor='white'><center><table border=0 cellspacing=10 width=80%>";
function search(frm) {
win = window.open("","","scrollbars");
win.document.write(page);
txt = frm.srchval.value.split(" ");
fnd = new Array(); total=0;
for (i = 0; i < item.length; i++) {
fnd[i] = 0; order = new Array(0, 4, 2, 3);
for (j = 0; j < order.length; j++)
for (k = 0; k < txt.length; k++)
if (item[i][order[j]].toLowerCase().indexOf(txt[k]) > -1 && txt[k] != "")
fnd[i] += (j+1);
}
for (i = 0; i < fnd.length; i++) {
n = 0; w = -1;
for (j = 0;j < fnd.length; j++)
if (fnd[j] > n) { n = fnd[j]; w = j; };
if (w > -1) total += show(w, win, n);
fnd[w] = 0;
}
win.document.write("</table><br>Toplam Sonuç: "+total+"<br></body></html>");
win.document.close();
}
function show(which,wind,num) {
link = item[which][1] + item[which][0];
line = "<tr><td><a href='"+link+"'>"+item[which][2]+"</a> Score: "+num+"<br>";
line += item[which][4] + "<br>"+link+"</td></tr>";
wind.document.write(line);
return 1;
}
// End -->
</script>Geçerli web sayfanızın içerisinde arama yaptırabileceğiniz script:
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Dion (biab@iinet.net.au) -->
<!-- Web Site: http://www.iinet.net.au/~biab -->
<!-- Begin
var item = new Array();
/* Here is where all the magic happens.
Just enter as many additional pages that
that you want to search, then fill in the
additional listings for each page.
*/
// "Page Name","path","Page Title","Many,Key,Words","Descriptive Comments"
c=0; item[c]=new Array("index.html","","DemoSite","index,main,start,home,front","Demonstration search engine data about an imagined but probable internet site.");
c++; item[c]=new Array("about.htm","","About Me","about,author,contact,email,who","Contact details and general information about the creator of the site and what the site is about.");
c++; item[c]=new Array("links.htm","","Links page","links,more,where,similar,friends","Links to my favourite sites which I find interesting. Other friends sites which have similar interests to my own.");
c++; item[c]=new Array("main.htm","main/","Main Page","content,main,focus","The main part of my site which contains what you have come to see. Lots of stuff like that and more great things. All in a sub directory.");
c++; item[c]=new Array("logo.jpg","main/images/","Link Logo","link,image,logo,graphic","The logo.jpg is just a small image which you can place on your site as a link to me. It's in a second level subdirectory.");
page="<html><head><title>Search Results</title></head><body bgcolor='white'><center><table border=0 cellspacing=10 width=80%>";
function search(frm) {
win = window.open("","","scrollbars");
win.document.write(page);
txt = frm.srchval.value.split(" ");
fnd = new Array(); total=0;
for (i = 0; i < item.length; i++) {
fnd[i] = 0; order = new Array(0, 4, 2, 3);
for (j = 0; j < order.length; j++)
for (k = 0; k < txt.length; k++)
if (item[i][order[j]].toLowerCase().indexOf(txt[k]) > -1 && txt[k] != "")
fnd[i] += (j+1);
}
for (i = 0; i < fnd.length; i++) {
n = 0; w = -1;
for (j = 0;j < fnd.length; j++)
if (fnd[j] > n) { n = fnd[j]; w = j; };
if (w > -1) total += show(w, win, n);
fnd[w] = 0;
}
win.document.write("</table><br>Toplam Sonuç: "+total+"<br></body></html>");
win.document.close();
}
function show(which,wind,num) {
link = item[which][1] + item[which][0];
line = "<tr><td><a href='"+link+"'>"+item[which][2]+"</a> Score: "+num+"<br>";
line += item[which][4] + "<br>"+link+"</td></tr>";
wind.document.write(line);
return 1;
}
// End -->
</script>Kendi siteniz içerisinde arama yaptırabileceğiniz bir javascript daha:
<SCRIPT LANGUAGE="JAVASCRIPT">
/*JS Search Engine 1.0
A JavaScript search engine using multiple keywords!
Written by:
___ __ ___ ____ __ __ __
| / \ | | | | \ \ /\ /
| |--| |--/ |-- | | \ / \ /
|__| | | | \ |___ |_/ \/ \/ .
I, Jared W, have made this script public domain, that is, FREE TO ANYONE!
However, you must keep this header and all comments/notes intact on this script!
Otherwise, I give you permission to use and edit this script.
You may not sell this script or call it your own, even if you have edited it.
Thank you.
The JavaScript Village
http://www.tcis.net/~walczak/javascript/index.html
*/
var found1="<h3>Search Results</h3><BR><UL>"
var found2=""
var found3
/*IMPORTANT! You must change the number after the variable 'pagestosearch.' The number should be the amount of pages in your
search. Since numbers start with 0 in JavaScript, this is a little strange. Lets say you have five pages (pages[0], pages[1], pages[2], pages[3], and pages[4]). The last number is four. Therefore, you would type '4' after 'pagestosearch.'*/
pagestosearch=2
function searchdata (title, keyword1, keyword2, keyword3, keyword4, description, url)
{
this.title = title
this.keyword1 = keyword1
this.keyword2 = keyword2
this.keyword3 = keyword3
this.keyword4 = keyword4
this.description = description
this.url = url
}
pages = new Array()
pages[0] = new searchdata("JavaScript Village", "javascript", "javascripts", "free", "web", "Free JavaScripts and more!", "http://www.tcis.net/~walczak/javascript/index.html")
pages[1] = new searchdata("Yahoo!", "yahoo", "search", "search engine", "web", "A search engine like this, but runs on CGI", "http://www.yahoo.com")
pages[2] = new searchdata("Ebay", "ebay", "auction", "auctions", "buy", "The largest online auction", "http://www.ebay.com")
/*To add another page, just copy the below text.
//START CUT
pages[nextnumber] = new searchdata("title", "keyword1", "keyword2", "keyword3", "keyword4", "description", "url")
//END CUT*/
//DO NOT DELETE THE 'num=0.'
num=0
function findpages()
{
while (num <= pagestosearch)
{
if ( document.search.searchwords.value == pages[num].keyword1 || document.search.searchwords.value == pages[num].keyword2 || document.search.searchwords.value == pages[num].keyword3 || document.search.searchwords.value == pages[num].keyword4 )
{
found2 = "<LI><A HREF='"+pages[num].url+"' target='main'>"+ pages[num].title +"</A><BR><I>"+pages[num].keyword1+" "+pages[num].keyword2+" "+pages[num].keyword3+" "+pages[num].keyword4+"</I><BR>"+pages[num].description+""
found1 = found1+found2
found2 = ""
found3=found3+1
num=num+1
}
else
num=num+1
}
}
function listpages()
{
var OpenWindow=window.open("", "newwin", "height=550,width=450,scrollbars=yes,");
OpenWindow.document.write("<HTML>")
OpenWindow.document.write("<HEAD>")
OpenWindow.document.write("<TITLE>Arama Sonucu</TITLE>")
OpenWindow.document.write("</HEAD><BODY>")
OpenWindow.document.write("<font size=+1>Searched for </font>")
OpenWindow.document.write("<font size=+1><I>" + document.search.searchwords.value + "</I></font><P>")
OpenWindow.document.write("<font size=+0>" + found1 + "</font><P>")
OpenWindow.document.write("<font size=+0><A HREF='' onClick='self.close()'>Pencereyi Kapat</A></font><HR>")
OpenWindow.document.write("</BODY>")
OpenWindow.document.write("</HTML>")
}
function clearsearch()
{
found1="<h3>Search Results</h3><BR><UL>"
found2=""
num=0
}
</SCRIPT>