search.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <!--
  4. Example search page for the JavaScript install of Zoom Search Engine 5.0
  5. NOTE: that you should only use the JavaScript version if server-side
  6. processing is not available, such as on a CD-ROM, local intranet, etc.
  7. Client-side searching requires the entire index file to be downloaded
  8. to the client, which is not an issue locally, or if your website is small,
  9. but can be very slow for larger websites, over the Internet.
  10. Hints:
  11. 1. Make sure you have indexed your website with the Zoom Indexer application
  12. with the "Javascript" option checked in the Configuration dialog. It
  13. should produce a file named "zoom_index.js" in your selected output directory.
  14. 2. Put this file (search.html), search.js, and zoom_index.js in the same directory
  15. 3. Copy or upload these files to your distribution medium (CD, server, etc)
  16. 3. Customise this page as you see fit. You can also put a search form on the
  17. other pages of your site (or navbar) by copying the form below.
  18. -->
  19. <html lang="en" xml:lang="en">
  20. <head>
  21. <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  22. <title>Example search page for Zoom Search Engine (JavaScript version)</title>
  23. <script language="JavaScript" src="settings.js"></script>
  24. <script language="JavaScript" src="search.js"></script>
  25. <link rel="StyleSheet" href="../../common/search_bux.css" type="text/css">
  26. <style type="text/css">
  27. body { margin-left:0.8em; }
  28. </style>
  29. </head>
  30. <body onload="if (document.getElementById('zoom_searchbox')) {document.getElementById('zoom_searchbox').focus();}"><div role="main">
  31. <!-- This is where the search form and results will appear -->
  32. <script language="JavaScript">ZoomSearch();</script>
  33. <noscript>You must have JavaScript enabled to use the search engine.</noscript>
  34. <p> </p>
  35. </div></body>
  36. <script language="javascript">if( parent.tab.tV ) {parent.tab.tV('msrch')}</script>
  37. </html>