اسكندراني
10-10-2002, 10:50 PM
ها هو الكود
<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.uu.4t.com -->
<HTML>
<Head>
<!-- My **********ed Search Engine (I programmed this-->
<!-- I am most proud of it, I, أسكندراني -->
<!-- this! -->
<BODY BACKGROUND="back.jpg" BGCOLOR="#C0C0C0" TEXT="#000000" LINK="#000080" VLINK="#800040" ALINK="#FF0000"></BODY>
<SCRIPT LANGUAGE="**********">
<!-- Hide Script from Old Browsers
/*
Java Search Engine
(c)1997 أسكندراني
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 **********s
that I have used on my page from other people, AN EYE FOR AN EYE!
*/
// Obviously the more enteries you have the more time it will take to
// load the document, but the seek time reamins very quick, I would
// say with about 500 entries you would be quicker than YAHOO!
// at least with this there are no CGI Scripts to load, once the main
// page is in that's it!!!!
// Define Database Options
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] = "مثال"
Descrip[1] = "مثال للحروف"
Address[1] = "http://www.mydesktop.com/**********/"
Keyword[2] = "qwertyuiopasdfghjklzxcvbnm"
Descrip[2] = "مثال للحروف"
Address[2] = "http://www.yahoo.com"
Keyword[3] = "1234567890"
Descrip[3] = "مثال للارقام"
Address[3] = "http://www.mydesktop.com/**********/"
Keyword[4] = "free"
Descrip[4] = "Free webpages at Geocities."
Address[4] = "http://www.geocities.com"
Keyword[5] = "free"
Descrip[5] = "Free webpages at Tripod"
Address[5] = "http://www.tripod.com"
Keyword[6] = "free"
Descrip[6] = "Free ********** at ********** World"
Address[6] = "http://www.mydesktop.com/**********/"
function checkDatabase() {
var Found = false
var Item = document.forms[0].searchfor.value.toLowerCase();
stats='toolbar=no,location=no,directories=no,statu s=no,menubar=no,'
stats += 'scrollbars=yes,resizable=yes'
MsgBox = window.open ("","msgWindow",stats)
MsgBox.document.write("<head><title>نتاثج البحث</title></head>");
MsgBox.document.write ("<BODY BACKGROUND=back.jpg BGCOLOR=#C0C0C0 TEXT=#000000 LINK=#000080 VLINK=#800040 ALINK=#FF0000><H2><CENTER>نتائج البحث</CENTER></H2>")
MsgBox.document.write ("<H3>نتائج البحث للكلمة : "+Item+"<HR>");
for (var i=1; i <= Keyword[0]; i++) {
if(Item == Keyword[i]) {
Found = true;
MsgBox.document.write ("<H4>"+Descrip[i]+"<BR><A HREF="+Address[i]+">أضغط هنا للدخول والمشاهدة</A></H4>")
}
}
if(!Found)
MsgBox.document.write ("<H4>لم يتم أيجاد شئ</H4>")
// Leave the line below intact if you want to legally use this script
MsgBox.document.write ("<H6>جميع الحقوق محفوظة للموقع العربي 2002</A></H6>")
// 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 aswell, and not crap JAVA!
// Also a copyright notice MUST appear with the form.
MsgBox.document.write ("<FORM><CENTER>")
MsgBox.document.write ("<INPUT type='button' value='أغلق' onClick = 'self.close()'>")
MsgBox.document.write ("</CENTER></FORM>") }
// -->
</SCRIPT>
<FORM NAME="form1">
<B><U>أكتب ما تريد أن تبحث عنه أسفل</B></U> <FONT SIZE=1></FONT><BR>
<INPUT TYPE="text" NAME="searchfor" VALUE="example" SIZE=20><INPUT TYPE="button" VALUE="أبحث" onClick="checkDatabase()"><BR>
<!-- End Of File -->
<P>
<P>
<!-- END OF SCRIPT -->
<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.uu.4t.com -->
<HTML>
<Head>
<!-- My **********ed Search Engine (I programmed this-->
<!-- I am most proud of it, I, أسكندراني -->
<!-- this! -->
<BODY BACKGROUND="back.jpg" BGCOLOR="#C0C0C0" TEXT="#000000" LINK="#000080" VLINK="#800040" ALINK="#FF0000"></BODY>
<SCRIPT LANGUAGE="**********">
<!-- Hide Script from Old Browsers
/*
Java Search Engine
(c)1997 أسكندراني
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 **********s
that I have used on my page from other people, AN EYE FOR AN EYE!
*/
// Obviously the more enteries you have the more time it will take to
// load the document, but the seek time reamins very quick, I would
// say with about 500 entries you would be quicker than YAHOO!
// at least with this there are no CGI Scripts to load, once the main
// page is in that's it!!!!
// Define Database Options
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] = "مثال"
Descrip[1] = "مثال للحروف"
Address[1] = "http://www.mydesktop.com/**********/"
Keyword[2] = "qwertyuiopasdfghjklzxcvbnm"
Descrip[2] = "مثال للحروف"
Address[2] = "http://www.yahoo.com"
Keyword[3] = "1234567890"
Descrip[3] = "مثال للارقام"
Address[3] = "http://www.mydesktop.com/**********/"
Keyword[4] = "free"
Descrip[4] = "Free webpages at Geocities."
Address[4] = "http://www.geocities.com"
Keyword[5] = "free"
Descrip[5] = "Free webpages at Tripod"
Address[5] = "http://www.tripod.com"
Keyword[6] = "free"
Descrip[6] = "Free ********** at ********** World"
Address[6] = "http://www.mydesktop.com/**********/"
function checkDatabase() {
var Found = false
var Item = document.forms[0].searchfor.value.toLowerCase();
stats='toolbar=no,location=no,directories=no,statu s=no,menubar=no,'
stats += 'scrollbars=yes,resizable=yes'
MsgBox = window.open ("","msgWindow",stats)
MsgBox.document.write("<head><title>نتاثج البحث</title></head>");
MsgBox.document.write ("<BODY BACKGROUND=back.jpg BGCOLOR=#C0C0C0 TEXT=#000000 LINK=#000080 VLINK=#800040 ALINK=#FF0000><H2><CENTER>نتائج البحث</CENTER></H2>")
MsgBox.document.write ("<H3>نتائج البحث للكلمة : "+Item+"<HR>");
for (var i=1; i <= Keyword[0]; i++) {
if(Item == Keyword[i]) {
Found = true;
MsgBox.document.write ("<H4>"+Descrip[i]+"<BR><A HREF="+Address[i]+">أضغط هنا للدخول والمشاهدة</A></H4>")
}
}
if(!Found)
MsgBox.document.write ("<H4>لم يتم أيجاد شئ</H4>")
// Leave the line below intact if you want to legally use this script
MsgBox.document.write ("<H6>جميع الحقوق محفوظة للموقع العربي 2002</A></H6>")
// 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 aswell, and not crap JAVA!
// Also a copyright notice MUST appear with the form.
MsgBox.document.write ("<FORM><CENTER>")
MsgBox.document.write ("<INPUT type='button' value='أغلق' onClick = 'self.close()'>")
MsgBox.document.write ("</CENTER></FORM>") }
// -->
</SCRIPT>
<FORM NAME="form1">
<B><U>أكتب ما تريد أن تبحث عنه أسفل</B></U> <FONT SIZE=1></FONT><BR>
<INPUT TYPE="text" NAME="searchfor" VALUE="example" SIZE=20><INPUT TYPE="button" VALUE="أبحث" onClick="checkDatabase()"><BR>
<!-- End Of File -->
<P>
<P>
<!-- END OF SCRIPT -->