Script Script Description:
The first step: Add the following code to the <body> area
<form name= "Database" >
<input type= "hidden" name= "list" value= ' Http://www.webcrawler.com~Webcrawler|keywords for the
Here separated by Spaces^a great search engine from the makers of aol!*http://java2000.126.com~java2000
Collections|java javascript Search HTML download CGI perl DHTML Games ActiveX download script ^coolest Java and
JavaScript collections for Internet surfers to enhance web page!
*http://www.javagoodies.com/~javagoodies|activex ASP C + + CGI Databases java javascript^coolest
Javagoodies!* ' >
</form>
<p>
<script language= "JavaScript" >
<!--
Version = 1.0;
-->
</script>
<script language= "JavaScript1.1" >
<!--
Version = 1.1;
-->
</script>
<script language= "JavaScript" >
<!--
When set to true, searching for "fun*y" matches in the string "Fun Sky".
(It would also match the string "fun and are some long dummy text for you"
Which is obviously not what they were looking for, so we suggest your set
Match_across_word_boundaries to False)
When set to False, the * operator won't match across word boundaries so
The above example would not match.
Match_across_word_boundaries = false; False is suggested strongly
NO NEED to MODIFY anything BELOW this point ************
function Page (url,title,keywords) {
while ((Url.length > 0) && (url.charat (0) = "")) {
url = url.substring (1,url.length);
}
This.url = URL;
while ((Title.length > 0) && (title.charat (0) = "")) {
title = Title.substring (1,title.length);
}
This.title = title;
this.keywords = keywords;
return this;
}
function Database () {
var pos = 0;
while ((POS1 = Amorphous.indexof ("~", POS))!=-1) {
Pos2 = Amorphous.indexof ("|", pos1+1);
POS3 = Amorphous.indexof ("*", pos2+1);
if ((Pos2!=-1)
&& (Pos2 < POS3) && (pos3 <= amorphous.indexof ("*", POS)) {
this[database_length++] = new Page (amorphous.substring (POS,POS1),
Amorphous.substring (POS1+1,POS2),
Amorphous.substring (POS2+1,POS3));
pos = pos3+1;
else {//Error reading amorphous database
if (pos+30 <= amorphous.length)
Alert (' Error reading in amorphous database around '
+ amorphous.substring (pos,pos+30) + ' "");
pos = Amorphous.indexof ("*", POS) + 1;
}
}
return this;
}
var array = new Object ();
array_length = 0; Netscape 2 Fix
var position = new Object ();
position_length = 0; Netscape 2 Fix
function pattern (str) {
array_length = position_length = 0;
while ((Str.length > 1) && (str.charat (0) = "*")) {
str = str.substring (1,str.length);
}
while ((Str.length > 1) && (Str.charat (str.length-1) = = "*")) {
str = str.substring (0,str.length-1);
}
if (str = "*")
Return "(true)";
if (Str.indexof ("*") = = 1) {
array[array_length++] = str;
Pat = "(Combo.indexof (Array[0])!=-1)";
} else {
left = right = 0;
PAT2 = "";
Pat = "((position[0] = Combo.indexof (array[0))!=-1)";
while (right = Str.indexof ("*", left))!=-1) {
array[array_length++] = str.substring (left,right);
Pat + = "&& (position[" + (Position_length) + "] < (position[)
+ (++position_length) + "] = Combo.indexof (array[) + (array_length)
+ "],position[" + (position_length-1) + "]+array[" + (array_length-1) + "].length" +)) ";
if (!match_across_word_boundaries)
PAT2 = "&& (no_back_up = (Back_up_pos + = Combo.substring ("
+ "Temp_pos = Back_up_pos = position["
+ (position_length-1) + "]+array[" + (array_length-1) + "].length,position["
+ (Position_length) + "]). LastIndexOf (')) < Temp_pos)" + pat2;
left = right+1;
}
array[array_length++] = str.substring (left,str.length);
Pat + + pat2+ ")";
}
return Pat;
}
function Search (str) {
menu_length = 0;
temp = new Object ();
temp_length = 0;
words_length = 0;
Words = new Object ();
pos = 0;
while (pos = Str.indexof (""))!