home *** CD-ROM | disk | FTP | other *** search
- var loc = unescape(parent.frames[1].store);
- var end = loc.indexOf("&");
- if (end == -1) end = loc.length;
- var query = loc.substring(1,end);
- var results = 0;
-
- document.write("<CENTER><H3>Your search for \"" + query + "\" produced:</H3></CENTER><BLOCKQUOTE>");
-
- function displayNext() {
-
- loc = loc.substring(1,loc.length);
- var end = loc.indexOf("&");
- if (end == -1) {
- url = loc.substring(0,loc.indexOf("+"));
- keyword = loc.substring((loc.indexOf("+")+1),loc.length);
- test = loc.substring(2,loc.indexOf("+"));
- document.write("<TABLE><TR><TD>"+ results + ". " + keyword + " . " +</TD><TD><A HREF=\"" + url + "\">" + url + "</A></TD></TR>");
- }
- else {
- url = loc.substring(0,loc.indexOf("+"));
- keyword = loc.substring((loc.indexOf("+")+1),end);
- test = loc.substring(2,loc.indexOf("+"));
- loc = loc.substring(end,loc.length);
- document.write("<TR><TD>"+ results + ". " + keyword + " . " + test + "</TD><TD><A HREF=\"" + url + "\">" + url + "</A></TD></TR>");
- results++;
- displayNext();
- }
- }
-
- if (loc.indexOf("&") == -1) document.write("</OL><CENTER>Fⁿr diesen Suchbegriff wurde kein Eintrag gefunden!");
- else {
- loc = loc.substring(loc.indexOf("&"),loc.length);
- document.write("<CENTER><TABLE BORDER=0 CELLPADDING=10><OL><TR><TD ALIGN=CENTER><B>Keyword</B></TD><TD ALIGN=CENTER><B>URL</B></TD></TR>");
- results++;
- displayNext();
- document.write("</OL></TABLE><P><CENTER><H3>" + results + " Match");
- if (results != 1) document.write("es");
- document.write("</H3>");
- }
-
-
-
-
-
-
-
-
-
-
-
-
- <FORM NAME="form">
- <input type="text" name="query" size=20 maxlength=256>
- <A HREF="javascript:processSearch()" onMouseover="window.status='Click this button to start the search'; return true"> </A>
- <input type="button" value="Start Search" onClick="processSearch();">
- </FORM>
-
- <SCRIPT LANGUAGE="JavaScript">
- <!--
-
- temp = document.location + "";
- if (temp.indexOf("=") != -1) {
- temp = temp.substring((temp.indexOf("=")+1),temp.length);
- document.form.query.value = temp;
- processSearch();
- }
-
- //-->
- </SCRIPT>