Make it Searchable - Go It Alone
(Page 3 of 4 )
There is more than one way to make it searchable and make your site easier for traffic to navigate. You may find the answer through Web hosting services offering easy-to-use online tools. You could turn to friendly Web sites with free scripts you can conveniently place right in your online HTML editor. But if none of this sounds at all appealing to you, thereís another option you can take advantage of, though it may be the most difficult choice of the three: simply write the code yourself.
First things first. You have to create a special page in order to implement your search. Begin a new HTML document and name it sitesearch.html. In the body portion of this page, youíll write the code which will enable search on the site. Play with the size and placement of your search bar as much as you like, but some parts of the code must remain the same for search to work.
The code for a search bar looks like something like this:
<!-- Begin var test="a";
var find='index.html~ page name | keywords *'
+'page2.html~ page 2 name | keywords *'
// End -->
<FRAME SRC="sitesearch-main.html" SCROLLING="yes" NAME="main">
<FRAME SRC="sitesearch-display.html" SCROLLING="no" NAME="results">
Note the various characters used in the script; these are not mistakes, but part of the code. Where it says page name and page name 2, youíll put in the actual names of the pages you want to include in your siteĎs search. Youíll also want to type in the keywords for your site. Make sure to separate the keywords you enter with a space for each word. Keep repeating the same code for all the pages you want to include in your siteís search. If you have many pages to include in the search, writing the code itself could take a great deal of time and consideration.
More Search Engine Tricks Articles
More By KC Morgan