|
There are three stages to using the JavaScript Search Engine on your site. Note that Search Maker Pro does these three stages for you. Step 1 - Get the Template search.html file The search.html file will contain both the index and the code that will enable people to search your site. You simply need to place this file on your site and link to it to provide search facilities. There are many ways to download the file. You can right click it (Windows) or keep the mouse pressed (Macintosh) and select the option to download the file. Alternatively you could look at the file by clicking on it and "view the source".
For the search engine to work you must create a line of code that will be an index for each page. The Form Wizard will create the line of code for you. It is recommended you use this as it effectively strips out the text from image rich web pages. If you would rather edit the code by hand then please refer to the Edit Code page. Each line of code will look like this:
You will need
to create one line of code for each page. You must add each line of
code to the template search.html file. For instance if you have
three pages indexed your search.html should look like this:
The lines of code can be very wide!
Make sure that each If you use relative links on your site (most sites do) then you will be able to test the search engine offline, although the links will point to sites on the Internet. |
||||||||||||||||||||||||||||||||||||||||||||