• Web sitemizin içeriğine ve tüm hizmetlerimize erişim sağlamak için Web sitemize kayıt olmalı ya da giriş yapmalısınız. Web sitemize üye olmak tamamen ücretsizdir.
  • Sohbetokey.com ile canlı okey oynamaya ne dersin? Hem sohbet et, hem mobil okey oyna!
  • Soru mu? Sorun mu? ''Bir Sorum Var?'' sistemimiz aktiftir. Paylaşın beraber çözüm üretelim.

Arama Motoru-(site-içi)-2

Üyelik Tarihi
7 Ocak 2015
Konular
4,091
Mesajlar
4,274
MFC Puanı
40
Kod:
<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 ( ********.search.searchwords.value == pages[num].keyword1 || ********.search.searchwords.value == pages[num].keyword2 || ********.search.searchwords.value == pages[num].keyword3 || ********.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.********.write("<HTML>")
OpenWindow.********.write("<HEAD>")
OpenWindow.********.write("<TITLE>Arama Sonucu</TITLE>")
OpenWindow.********.write("</HEAD><BODY>")
OpenWindow.********.write("<font size=+1>Searched for </font>")
OpenWindow.********.write("<font size=+1><I>" + ********.search.searchwords.value + "</I></font><P>")
OpenWindow.********.write("<font size=+0>" + found1 + "</font><P>")
OpenWindow.********.write("<font size=+0><A HREF='' onClick='self.close()'>Pencereyi Kapat</A></font><HR>")
OpenWindow.********.write("</BODY>")
OpenWindow.********.write("</HTML>")
}

function clearsearch()
{
found1="<h3>Search Results</h3><BR><UL>"
found2=""
num=0
}
</SCRIPT>
 
Üst