Site Search Script Example three (JavaScript)

Source: Internet
Author: User
Tags resource
Script 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 = "";
This. Category = "";
This. Target = "";
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];
THIS[R]. Category = Categoryarray[r];
THIS[R]. Target = Targetarray[r];
}
return this;
}


var linksize=0

Datesarray = new Makearray (linksize);
Namesarray = new Makearray (linksize);
Urlsarray = new Makearray (linksize);
Descarray = new Makearray (linksize);
Categoryarray = new Makearray (linksize);
Targetarray = new Makearray (linksize);


var arraycount=0

<!--database section starts-->
Arraycount + 1
Urlsarray[arraycount] = "http://java2000.126.com"
Namesarray[arraycount] = "Java Script resource station CHINESE-GB"
Descarray[arraycount] = "java, JavaScript, scripts, applet, HTML, DHTML, ActiveX, midi, search, downloads,
Scripts, free, resources "
Categoryarray[arraycount] = "Coolest Java Script resource station, lots of detailed Java source code and instance descriptions!"
Targetarray[arraycount] = "Target=_blank"

Arraycount + 1
Urlsarray[arraycount] = "http://members.aol.com/MASTER54X/Anime.html"
Namesarray[arraycount] = "Anime Master"
Descarray[arraycount] = "Anime master, anime, Project A-ko, Vampire Hunter D, Tenchi Muyo, Bubblegum
Crisis, Sailor Moon, Sailormoon gunsmith Cats, Slayers, all Purpose cultural cat girl Nuku Nuku, plastic
Little, Devil Hunter Yohko, Iria:zeiram the animation, Iria, Ranma 1/2, Ranma, Fist of the North Star,
Multimedia, galleries, pic galleries, picture gallery, image gallery, image galleries "
Categoryarray[arraycount] = "Multimedia, Image galleries for project A-ko, vampire Hunter D, Tenchi Muyo,
Bubblegum Crisis, Sailormoon, gunsmith Cats, Slayers, all Purpose cultural cat girl Nuku Nuku, plastic
Little, Devil Hunter Yohko, Iria:zeiram the animation, Ranma 1/2, and Fist of the North Star.
Targetarray[arraycount] = "Target=_blank"

Arraycount + 1
Urlsarray[arraycount] = "http://www.geocities.com/Tokyo/Towers/6508/"
Namesarray[arraycount] = "The anime Shrine"
Descarray[arraycount] = "The anime shrine, anime shrine, anime, the anime shrine, anime shrine, manga,
Saintseiya, Fushigiyuugi, Fushigi Yuugi, Evangelion, Neon Genesis Evangelion, Eva, Ranma, Ranma 1/2 "
Categoryarray[arraycount] = "This are a fairly large site with large image galleries from many dif animes,
Many links, gives out awards, has 3 voting shrines, also sub-shrines for Fushigi, Yuugi,
Evangelion, and Ranma 1/2. And much more! Must see! "
Targetarray[arraycount] = "Target=_blank"

Arraycount + 1
Urlsarray[arraycount] = "http://home.taegu.net/~virus/"
Namesarray[arraycount] = "Evangelion Site"
Descarray[arraycount] = "Evangelion site, Anime, Evangelion, Neon Genesis, Neon Genesis Evangelion, Eva,
Neon, Genesis "
Categoryarray[arraycount] = "This site is about Evangelion, but available into Korean only ..."
Targetarray[arraycount] = "Target=_blank"

Arraycount + 1
Urlsarray[arraycount] = "http://animeonline.org/"
Namesarray[arraycount] = "The Animeonline network"
Descarray[arraycount] = "The Animeonline network, anime, Animecca, news, information, Anime magazine,
Magazine, zine, E-zine "
Categoryarray[arraycount] = "Your Online anime magazine!"
Targetarray[arraycount] = "Target=_blank"

Arraycount + 1
Urlsarray[arraycount] = "http://www.visi.com/~vdgaijin/gaijin.html"
Namesarray[arraycount] = "Psychommu gaijin anime E-zine"
Descarray[arraycount] = "Psychommu gaijin anime e-zine, anime, music, links, news, information, E-zine,
Zine "
Categoryarray[arraycount] = "Our aim are to provide, with news and information on some of the coolest
Aspects of anime. Old and new! So come on and enjoy! "
Targetarray[array



Related Article

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.