Search Field with JS/CSS
![]()
Written by Alen Grakalic
It features plug & play onfocus and onblur behaviors and auto suggestion. Search suggestion terms displayed as a dropdown box below the search field. You can navigate with up and down keys, or your mouse and you can edit your own keywords. All you need is two lines of code, links to JavaScript and CSS files and that would be it.
download: Searchfield (19.11 kB)
Implementation
- HEAD:
<link href="/searchfield/searchfield.css" rel="stylesheet" type="text/css"
media="screen" />
<script type="text/javascript" src="/searchfield/searchfield.js"></script>
- BODY:
<form id="searchform" action="" method="post">
<p><input type="text" id="searchfield"
name="searchfield" value="" />
<button type="submit">Go</button></p>
</form>
At the end modify css file to make it blend into your site.

| < Prev | Next > |
|---|
- 21/05/2008 19:30 - JavaScript Slider and Scroller
- 24/04/2008 01:28 - Accordion v2.0(prototype)
- 07/04/2008 00:27 - Easy Scroll
- 04/01/2008 06:59 - Spellify
- 20/12/2007 20:00 - HighSlide
- 09/12/2007 21:03 - slide-out-menu
- 09/12/2007 03:24 - AJAX-S
- 26/11/2007 21:01 - Accessible Unobtrusive Slider







