؟؟
؟؟
هذا محرك بحث جافا من موقع http://www.javascripts.com
انسخه والصقه في المفكرة في احفظه بصيغةhtml بدلا من txt وبالتوفيق :
<html>
<head>
<title>My Script-by Me</title>
</head>
<body>
<IMG SRC="http://service.bfast.com/bfast/serve?bfmid=5960107&siteid=26449807&bfpage=hotbot2" BORDER="0" WIDTH="1" HEIGHT="1" NOSAVE >
<FORM ACTION="http://service.bfast.com/bfast/click" >
<INPUT TYPE="hidden" NAME="siteid" VALUE="26449807" >
<INPUT TYPE="hidden" NAME="bfpage" VALUE="hotbot2">
<INPUT TYPE="hidden" NAME="bfmid" VALUE="5960107" >
<TABLE VALIGN=TOP WIDTH=99 BGCOLOR="#330099" BORDER=0 CELLSPACING=0 CELLPADDING=1><TR><TD valign=top><img src="http://lygo.com./ly/a/h/aff_hotbotlogo.gif" width="98" height="28"></td></tr>
<tr><td valign=top>
<TABLE WIDTH=98 BGCOLOR="#FFFFFF" BORDER=0 CELLSPACING=0 CELLPADDING=1>
<TR><TD BGCOLOR="#FFFFFF" align=center><FONT SIZE="-2" FACE="verdana"><BR><B>Search the Web:</B></font></TD></TR>
<TR><TD><CENTER><FONT FACE="VERDANA,HELVETICA,ARIAL" COLOR="#000000" SIZE="-1">
<INPUT type=text NAME="MT" SIZE=8 VALUE="" MAXLENGTH=100></font>
</CENTER><FONT FACE="VERDANA,HELVETICA,ARIAL" COLOR="#000000" SIZE="-1"><BR></font>
</TD></TR>
<TR><TD HEIGHT=30 BGCOLOR="#330099">
<CENTER><INPUT TYPE=image src="http://lygo.com/ly/a/h/hotbot_searchbutton.gif" HEIGHT=20 WIDTH=63 BORDER=0 ALT="Search"></CENTER>
</TD></TR>
</TABLE>
</TD>
</TR>
</TABLE>
<table width=99 border=0 cellspacing=0 cellpadding=0>
<tr>
<td align=RIGHT><img src="http://lygo.com./ly/a/a/afftile_bottom_blk.gif" width="100" height="14"></td>
</tr>
</table></FORM>
</body>
</html>
أخي المستكشف ..
أين أضع عناوين الصفحات التي أريد أن أبحث فيها أم أن هذا السكبت فقط للبحث في صفحة واحدة
__________________
ادخل الى عالم الشعر من بوابته ( بوابة الشعراء )
اخي العزيز
لن تحتاج الى تعديل اي شيئ في السكريبت المذكور فهو يبحث في محرك بحث واحد فقط .
واليك محرك البحث الثاني الذي يدعم 14 محرك بحث وجاهز للعمل ، ونحن في الخدمة انت بس اطلب .
محرك بحث
<script language="JavaScript"><!--
// 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('<FORM Name=Gotchaform OnSubmit="HandleForm(this); return false">');
document.writeln('<strong></strong> <INPUT size=15 name="query">');
document.writeln('<strong></strong> <SELECT name="service">');
for (i=1; i <= engs.len; i++) {
document.writeln("<OPTION " + engs[i].opts + "> " + engs[i].name);
}
document.writeln('</SELECT> <input type=submit value="Search"><br>');
document.writeln('</FORM>');
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,directories=yes,status=yes,menubar=y es,resizable=yes,width='100%',hight='100%'");
}
Add("Alta Vista","SELECTED","http://altavista.digital.com/","http://altavista.digital.com/cgi-bin/query?pg=q&what=web&fmt=d&q=hunt");
Add("Yahoo!","","http://www.yahoo.com/","http://search.yahoo.com/bin/search?p=hunt" );
Add("DejaNews","","http://www.dejanews.com/","http://search.dejanews.com/nph-dnquery.xp?query=hunt&defaultOp=AND&svcclass=dncurrent&maxhits=25");
Add("HotBot","","http://www.search.hotbot.com","http://www.search.hotbot.com/search.html?MT=hunt&DC=25");
Add("Infoseek","","http://www.infoseek.com/Home?pg=Home.html&sv=A2","http://www.infoseek.com/Titles?qt=hunt&col=WW&sv=A2");
Add("Excite","","http://www.excite.com/","http://www.excite.com/search.gw?searchType=Concept&search=hunt&category=default");
Add("Lycos","","http://www.lycos.com/","http://www.lycos.com/cgi-bin/pursuit?query=hunt&backlink=639");
Add("Magellan","","http://www.mckinley.com/","http://www.mckinley.com/extsearch.cgi?query=hunt");
Add("OpenText","","http://search.opentext.com","http://search.opentext.com/omw/simplesearch?SearchFor=hunt&mode=and");
Add("WebCrawler","","http://webcrawler.com/","http://webcrawler.com/cgi-bin/WebQuery?searchText=hunt&maxHits=25");
// Software
Add("ZDNet Files","","http://www.zdnet.com/","http://www6.zdnet.com/cgi-bin/texis/swlib/hotfiles/search.html?Usrt=rel&Usrchtype=simple&Utext=hunt");
Add("Filez","","http://www.filez.com/","http://filez.com/cgi/filez.cgi?query=hunt&type=All+Files&hits=50&domain=World&doit=Search/");
Add("Shareware.com","","http://www.shareware.com/","http://search.shareware.com/code/engine/Find?logop=and&cfrom=quick&orfile=True&hits=25&search=hunt&category=All-Categories");
Add("PC Gamer","","http://www.pcgame.com/","http://www.pcgame.com/finder/search.cgi?key=hunt");
// Denmark
DisplayForm();
// STOP HIDE
// --></script>
أخي المستكشف ،،،
أشكرك على إضافتك ،،، وأهتمامك ،،،
لكن أنا أريد محرك بحث ( يبحث في صفحات موقعي فقط)،،، مثل طريقة البحث في موقع الردادي al-raddadi.com
ولك مني خالص الشكر والتقدير ،،،
لا تقلق اخي العزيز هذا هو السكريبت كاملا:
<html>
<head>
<title>JavaFILE</title>
<base target="leftframe">
</head>
<body BGCOLOR="#ffffff" link="#CC0033" vlink="#333399" alink="#FF0000" <!--content start-->
<table WIDTH="96%" BORDER="0" CELLSPACING="5" CELLPADDING="5">
<tr>
<td WIDTH="100%">This script is for building your own website search engine! All you need
to do is change the "keywords" and "url" in the source code and it
will search your site locally...pretty cool! Best part is...it opens in a new
"mini-window".<font FACE="ARIEL,HELVETICA" SIZE="-1"><p align="center"><script
LANGUAGE="JavaScript">
<!-- Hide Script from Old Browsers
/*
Optimized by Daniel Bergman [http://botw.cjb.net].
Java Search Engine
(c)1997 Adam ALLEN.
Version 2.0
You may use this search engine on your page, but keep this
notice intact, and at the bottom of leave the Copyright notice at
the bottom of this page.
This scripts is my property, so please honnour my requests,
If you do so, you may freely copy, distribute, give this scripts
But it will FOREVER REMAIN MY PROPERTY.
This is the first Java Script that I have wrote, and am proud of it,
I feel pleased that I can contribute back to the bank of JavaScripts
that I have used on my page from other people, AN EYE FOR AN EYE!
*/
Keyword = new Object();
Descrip = new Object();
Address = new Object();
// Keyword[0] = n (where n is the number of keywords which can be searched
Keyword[0] = 6
// Each entry is split into
// Keyword[n] = text (where text is the keyword of which the entry is to
// be searched by (type Keywords in lowercase)
// Descrip[n] = text (where text is the description associated to this entry
// Address[n] = text (where text is the URL associated to the entry
// n is the entry number.
Keyword[1] = "javascript"
Descrip[1] = "Visit The JavaFILE, the absolutely best JavaScript site."
Address[1] = "http://www.javafile.com"
Keyword[2] = "free"
Descrip[2] = "Free banners, logo, fonts!"
Address[2] = "http://www.graphxisle.com"
Keyword[3] = "free"
Descrip[3] = "Free webservices at Bravenet."
Address[3] = "http://www.bravenet.com"
Keyword[4] = "free"
Descrip[4] = "Your site can go here!"
Address[4] = "http://www.yoursite.com"
function checkDatabase() {
var Found = false
var Item = document.forms[0].searchfor.value.toLowerCase();
stats='toolbar=no,location=no,directories=no,status=no,menubar=no,height=300,width=300,'
stats += 'scrollbars=yes,resizable=yes'
MsgBox = window.open ("","msgWindow",stats)
MsgBox.opener = window;
MsgBox.opener.name = "opener";
MsgBox.document.write("<head><title>Search Results</title></head>");
MsgBox.document.write ("<body bgcolor=white text=black link=blue vlink=darkblue alink=blue><H2><CENTER><font face=arial>Search Results</CENTER></H2>")
MsgBox.document.write ("<font size=3><b><center>For the keyword: "+Item+"</center><hr width=50%></b></font>");
for (var i=1; i <= Keyword[0]; i++) {
if(Item == Keyword[i]) {
Found = true;
MsgBox.document.write ("<li><font face=arial><font size=2><b>"+Descrip[i]+"<BR><A HREF="+Address[i]+" target='opener'>Click Here To Go There</A></font></font>")
}
}
if(!Found)
MsgBox.document.write ("<H4>Nothing Found</H4>")
// Leave the line below intact if you want to legally use this script
MsgBox.document.write ("<FORM><CENTER>")
MsgBox.document.write ("<font size=2><font color=arial><INPUT type='button' value='Close' onClick = 'self.close()'></font></font>")
MsgBox.document.write ("</CENTER></FORM>")
MsgBox.document.write ("<H6><small><small><small><b></b><font color=white><font face=arial><font size=1><font color=black>Originally created by Adam Allen <br>© 1997 All Rights Reserved</font></font></small></small></small>")
// There must be my notice above if you are to use this script legally.
// It took many hours work, fairs is fair, I just want that little line in
// and you get a fully working Search ENGINE, for FREE, on your site
// In Java Scripts as well, and not crap JAVA!
// Also a copyright notice MUST appear with the form.
}
// -->
</script> </font></p>
<form NAME="form1">
<b><div align="center"><center><p>Search for:</b><br>
<input TYPE="text" NAME="searchfor" VALUE="JavaScript" SIZE="20"><b><input type="button"
value="Search" align="absmiddle" onClick="checkDatabase()"></b><br>
<br>
<font face="Arial" size="2">To test this search engine, search for <strong>'JavaScript'</strong>.</font></font>
</p>
</center></div>
</form>
</td>
</tr>
</table>
<!--content stop-->
</body>
</html>
مشكور على هذا السكريبت ،،،
لقد قمت بتجربته ،،، لكن!!!
في نفس الصفحة أضع بعض الكلمات وأنفذ أمر بحث ،،،
ويجيب بنافذة مستقلة لايوجد كلمة كهذه،،،
مالسبب؟؟
ثم أريد بحث مثل الذي في موقع الردادي ،،، جميل ،،، وكذلك ينظم النتائج في صفحة مستقلة ،،،
وهل هذا السيكريبت داعم للغة العربية ،،، ولا هناك مشاكل أيضاً
تحياتي لك ،،،
عندي موقع في f2s ،،،
وعندما أردت أن أضيف محرك بحث في موقعي ،،،
قال لابد من موقع برنامج البيرل 5 Perl 5 في موقعك
#!/usr/bin/perl
كيف أكون البيرل في موقعي في f2s???
وهذا شرح رائع ،،، وموقع ممتاز لشرح تركيبة تلك البرامج في المواقع،،،
http://ninacgi.virtualave.net/fetch.html
وشكراً للجميع ،،، وأرجوا الرد على أستفساري
السكريبت يحتاج الى التعديل كما هو واضح في التعليمات قم بالبحث عن الاسطر التالية:
Keyword[1] = "javascript"
Descrip[1] = "Visit The JavaFILE, the absolutely best JavaScript site."
Address[1] = "http://www.javafile.com"
Keyword[2] = "free"
Descrip[2] = "Free banners, logo, fonts!"
Address[2] = "http://www.graphxisle.com"
Keyword[3] = "free"
Descrip[3] = "Free webservices at Bravenet."
Address[3] = "http://www.bravenet.com"
Keyword[4] = "free"
Descrip[4] = "Your site can go here!"
Address[4] = "http://www.yoursite.com"
هذه 4 كلمات مفتاحية كل مجموعة تنقسم الى 3 متغيرات اولا الكلمة المفتاحية ثانيا الوصف ثالثا موقع الصفحة ,يمكنك ان تضيف ما تشاء باضافة الكلمة 5 و6 ....الخ.
واما بالنسبة لموقع البيرل في f2s فهو كما ذكرت #!/usr/bin/perl
وتحتاج الى الاشارة اليه في اول السكريبت فقط ففي الشركة المذكورة يمكنك وضع السكريبت في اي مجلد ولا يشترط مجلد cgi-bin
أنا غيرت سابقاً في بعض الكود ،،،
وكذلك عملت الذي قلته في الأخير ،،، لكن دون جدوى ،،،
أخي أريد أن أجربه أولاً على جهازي ،،، فأنا أنشأت ملفاً أسمه wwwفي الويندوز،،، وبداخله صفحات انترنت عناوينها 01و02 و 03 ...ألخ
مالذي يجب علي أن أغيره في الكود ،،،وما فائدة الكلمة المفتاحية؟ والوصف؟
__________
Keyword[1] = "javascript"
Descrip[1] = "Visit The JavaFILE, the absolutely best JavaScript site."
Address[1] = "http://www.javafile.com"
Keyword[2] = "free"
Descrip[2] = "Free banners, logo, fonts!"
Address[2] = "http://www.graphxisle.com"
Keyword[3] = "free"
Descrip[3] = "Free webservices at Bravenet."
Address[3] = "http://www.bravenet.com"
Keyword[4] = "free"
Descrip[4] = "Your site can go here!"
Address[4] = "http://www.yoursite.com
__________
وهذا بريدي للتواصل أكثر ،،،
fai9al40@hotmail.com
ولك فائق إحترامي وتقديري،،،