脚本说明:
第一步:把如下代码加入<body>区域中
<form name="database">
<input type="hidden" name="list" value='http://www.webcrawler.com~Webcrawler|keywords for first file go
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 下载 脚本^coolest java and
javascript collections for internet surfers to enhance web page!
*http://www.javagoodies.com/~javagoodies|ActiveX ASP C/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 will also match the string "fun and here is some long dummy text for you"
// which is obviously not what they were looking for, so we suggest you set
// match_across_word_boundaries to false)
// When set to false, the * operator will not match across word boundaries so
// the above example will 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;
}
站内搜索脚本例子四(JavaScript)
时间: 2024-12-21 00:48:45
站内搜索脚本例子四(JavaScript)的相关文章
站内搜索脚本例子三(JavaScript)
脚本说明:第一步:把如下代码加入<body>区域中<script language="javascript">var key = "";function makeEntry (){this.Name="";this.URL = "";this.Desc = "";this.Category = "";this.Target = "";retur
站内搜索脚本例子一(JavaScript)
脚本说明:第一步:把如下代码加入<body>区域中<script language="JavaScript"><!--// 下面是负责搜索的页面的全路径或相对路径var search_htm_url = "searchsource.htm";function searchPage() {if ((document.searchpage.keyword.value.length == 0)|| (document.searchpage.k
站内搜索脚本例子六(JavaScript)
脚本说明:第一步:把如下代码加入<body>区域中<script language = "JavaScript">var key = "";function makeEntry (){this.Name="";this.URL = "";this.Desc = "";return this;}function makeArray(n){this.length = n;for (var
站内搜索脚本例子四(&;#106avascript)
脚本 脚本说明:第一步:把如下代码加入<body>区域中<form name="database"><input type="hidden" name="list" value='http://www.webcrawler.com~Webcrawler|keywords for first file go here separated by spaces^A great search engine from the
站内搜索脚本例子二(JavaScript)
脚本说明:把如下代码加入<body>区域中<script language="javascript"> var key = "";function makeEntry (){this.Date = "";this.Name="";this.URL = "";this.Desc = "";this.Category = "";return thi
站内搜索脚本例子二(&;#106avascript)
脚本 脚本说明:把如下代码加入<body>区域中<script language="javascript"> var key = ""; function makeEntry (){this.Date = "";this.Name="";this.URL = "";this.Desc = "";this.Category = "";return
站内搜索脚本例子一(&;#106avascript)
脚本 脚本说明:第一步:把如下代码加入<body>区域中<script language="JavaScript"><!--// 下面是负责搜索的页面的全路径或相对路径var search_htm_url = "searchsource.htm"; function searchPage() {if ((document.searchpage.keyword.value.length == 0)|| (document.searchpa
站内搜索脚本例子三(&;#106avascript)
脚本 脚本说明:第一步:把如下代码加入<body>区域中<script language="javascript">var key = "";function makeEntry (){this.Name="";this.URL = "";this.Desc = "";this.Category = "";this.Target = "";re
站内搜索脚本例子五(&;#106avascript)
脚本 脚本说明:第一步:把如下代码加入<body>区域中<SCRIPT LANGUAGE="JavaScript"><!-- Hide Script from Old BrowsersKeyword = new Object();Descrip = new Object();Address = new Object(); // Keyword[0] = n (where n is the number of keywords which can be se