脚本说明:
把如下代码加入<body>区域中
<script language="javascript">
var key = "";
function makeEntry (){
this.Date = "";
this.Name="";
this.URL = "";
this.Desc = "";
this.Category = "";
return this;
}
function makeArray(n) {
this.length = n;
for (var k = 1; k <= n; k++) {
this[k] = "";
}
return this;
}
function makeLinks(size) {
this.length = size;
for (var r=1; r<= size; r++) {
this[r] = new makeEntry();
this[r].Date = datesArray[r];
this[r].Name = namesArray[r];
this[r].URL = urlsArray[r];
this[r].Desc = descArray[r];
}
return this;
}
var linksize=0
datesArray = new makeArray(linksize);
namesArray = new makeArray(linksize);
urlsArray = new makeArray(linksize);
descArray = new makeArray(linksize);
var arraycount=0
arraycount += 1
datesArray[arraycount] = "5/30/2000"
urlsArray[arraycount] = "http://www.163.net"
namesArray[arraycount] = "网易"
descArray[arraycount] = "163 netease yeah 126 chinese "
//alert(arraycount)
arraycount += 1
datesArray[arraycount] = "5/30/2000 "
urlsArray[arraycount] = "http://www.sina.com.cn"
namesArray[arraycount] = "新浪网"
descArray[arraycount] = "sina net chat chatting news super"
//alert(arraycount)
arraycount += 1
datesArray[arraycount] = "5/30/2000 "
urlsArray[arraycount] = "http://www.sohu.com"
namesArray[arraycount] = "搜狐"
descArray[arraycount] = "sohu net chat news "
//alert(arraycount)
linksize = arraycount;
// ----end data -------
function showAll(linkobj) {
for (var s=1; s<= linkobj.length; s++) {
showLink(linkobj,s);
}
站内搜索脚本例子二(JavaScript)
时间: 2024-11-02 22:08:28
站内搜索脚本例子二(JavaScript)的相关文章
站内搜索脚本例子二(&;#106avascript)
脚本 脚本说明:把如下代码加入<body>区域中<script language="javascript"> var key = ""; function makeEntry (){this.Date = "";this.Name="";this.URL = "";this.Desc = "";this.Category = "";return
站内搜索脚本例子三(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
站内搜索脚本例子四(JavaScript)
脚本说明:第一步:把如下代码加入<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 mak
站内搜索脚本例子一(&;#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
站内搜索脚本例子六(&;#106avascript)
脚本 脚本说明:第一步:把如下代码加入<body>区域中<script language = "JavaScript">var key = "";function makeEntry (){this.Name="";this.URL = "";this.Desc = "";return this;} function makeArray(n){this.length = n;for