Site Search Script Example four (JavaScript)

Source: Internet
Author: User
Script Description:
The first step: Add the following code to the <body> area
<form name= "Database" >
<input type= "hidden" name= "list" value= ' Http://www.webcrawler.com~Webcrawler|keywords for the
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 download script ^coolest Java and
JavaScript collections for Internet surfers to enhance web page!
*http://www.javagoodies.com/~javagoodies|activex ASP 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 would also match the string "fun and are some long dummy text for you"
Which is obviously not what they were looking for, so we suggest your set
Match_across_word_boundaries to False)
When set to False, the * operator won't match across word boundaries so
The above example would 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;
}
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.