Search bar for sites based on XSLT as target for results

/ Published in: HTML
Save to your folder(s)

A rough search form based on usage with googleboxes and xslt templates for results.

Copy this code and paste it in your HTML
  1. <div id="searchbar">
  2. <form action="" method="get">
  3. <input type="text" name="q" value="Search Our Site" size="20" maxlength="120" id="searchInput" onfocus="if(this.value == 'Search Our Site'){this.value='';}">
  4. <input type="hidden" name="site" value="externalSearch">
  5. <input type="hidden" name="client" value="externalSearch">
  6. <input type="hidden" name="restrict" value="wwwexternal">
  7. <input type="hidden" name="proxystylesheet" value="">
  8. <input type="hidden" name="output" value="xml_no_dtd">
  10. <input type="submit" name="btnG" value="Search" id="searchSubmit">
  11. </form>
  12. </div>

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.