Site Search Script Example six (JavaScript)

Source: Internet
Author: User
Script Description:
The first step: Add the following code to the <body> area
<script language = "JavaScript" >
var key = "";
function Makeentry ()
{
This. Name= "";
This. URL = "";
This. Desc = "";
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]. Name = Namesarray[r];
THIS[R]. URL = Urlsarray[r];
THIS[R]. Desc = Descarray[r];
}
return this;
}
var linksize=0;
Namesarray = new Makearray (linksize);
Urlsarray = new Makearray (linksize);
Descarray = new Makearray (linksize);
var arraycount=0;
<!--The following is a database section that adds and deletes-->
Arraycount + 1
Urlsarray[arraycount] = "http://nettrain.163.net/java/navigation/newscript.htm"
Namesarray[arraycount] = "Internet Express Java Script Resource Station"
Descarray[arraycount] = "Java JavaScript applet Games ActiveX ASP CGI databases Search Media dw2 MIDI
Music Menu HTML DHTML Intranet Internet scripts games perl downloads password Cookies free graphics
Freescripts calander dw2 Flash Plugins Script Password protection page script Free resources homepage Production tips download search engine form Submit insert
Piece of teaching dynamic page graphic image multimedia "
Arraycount + 1
Urlsarray[arraycount] = "http://www.win-shareware.com/desktop/adc120.html"
Namesarray[arraycount] = "Advanced Disk Catalog v1.20 Beta 1"
Descarray[arraycount] = "Catalog your disks, folders and files"
Arraycount + 1
Urlsarray[arraycount] = "http://www.win-shareware.com/tools/azpr.html"
Namesarray[arraycount] = "Advanced ZIP Password Recovery v0.91a"
Descarray[arraycount] = "Recover lost password for encrypted ZIP file"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.