Local Search Box | JavaScriptSource

Local Search Box

Ilya Lyubinskiy Dec 3, 2007

General

This script can be used to create a dropdown search box for your Web site, just like we use on our forums. You can also create dropdown search forms, hint boxes, and menus. The search box will appear to the right when you click the link. It can be adjusted in many different ways.


Site Search
Enter search terms:

Notes

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: localSearchBox.js


CSS

Paste this code into your external CSS file or in the <style> section within the HEAD section of your HTML document.


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


Leave a Response

(2 comments)

You need to keep the cursor focus on the search box.[br /][br /]It's only a script for the box. There is no built-in search capabilities. You will need to find a search script, such as [a href="http://www.perlfect.com/freescripts/search/"]Perlfect[/a]

Lee Underwood Jan 29, 2008

Whenever I begin typing in a search word the dialog box disappears. I am using Mozilla 2 and doing this on the JavaScript Internet site. Clicking on the dialog box then causes it to reappear, where corrections can be made. I think this would worry visitors.[br /]Question: Does it search the entire site?

Nomisacri Dec 7, 2007