Search widget code

Select the appropriate code from the formats listed below depending on your site's requirements. Copy the HTML code and insert it into the source code of your web page. If you are using a social site builder, such as a blog tool (e.g. Blogger, WordPress) ensure that you have first opened the appropriate widget for embedding HTML.

Simple Form
<form action="http://search.OurOntario.ca/results" method="get" >
<input type="text" size="40" name="q" />
<input type="hidden" name="st" value="kw" />
<input type="submit" value="Search" />
<input type="reset" value="New search" />
</form>
More Complex Form

OurOntario.ca

Find digital photos, maps, videos, podcasts, and documents about Ontario people, places, events, history and culture. Search OurOntario.ca for more...

<style media="screen" type="text/css">
    @import "http://www.OurOntario.ca/portlets/_common/minisearch.css";
    form.minisearch-oo h4 {background: transparent url("http://www.ourontario.ca/portlets/oo/minisearch_legend_oo.jpg") no-repeat top left;}
</style>
<form class="minisearch minisearch-oo" method="get" action="http://search.OurOntario.ca/results">
   <h4>OurOntario.ca</h4>
   <fieldset>
      <input class="minisearch" size="30" name="q" type="text" /><input type="hidden" name ="r" value="sw" /><input alt="submit" src="http://www.OurOntario.ca/portlets/_common/minisearch_button.jpg" class="minisubmit" value="submit" type="image" />
      <p>Find digital photos, maps, videos, podcasts, and documents about Ontario people, places, events, history and culture. Search <a href="http://search.ourontario.ca/search">OurOntario.ca</a></p>
   </fieldset>
</form>

The line above starting "form.minisearch-oo" needs to be on one line even though it may wrap in your display



Linkable version of this form
  http://www.ourontario.ca/portlets/oo/minisearch.html

Older HTML Form for Facebook and similar (restricted) pages
OurOntario.ca
 

Find digital photos, maps, videos, podcasts, and documents about Ontario people, places, events, history and culture. Search

  OurOntario.ca.
 
<table width="286" border="0" cellpadding="0" cellspacing="0" background="http://www.ourontario.ca/portlets/_common/minisearch_fieldset.jpg">
  <tr>
    <td colspan="3"><img src="http://www.ourontario.ca/portlets/oo/minisearch_legend_oo.jpg" width="286" height="73" alt="OurOntario.ca"></td>
  </tr>
  <tr>
    <td width="8">&nbsp;</td>
    <td width="270">
      <form requirelogin="false" method="get" action="http://search.OurOntario.ca/results"><input size="27" name="q" type="text"><input type="hidden" name ="r" value="fb"><input alt="submit" src="http://www.ourontario.ca/portlets/_common/minisearch_FBbutton.jpg" value="submit" type="image" align="top">
        <p><font color="#CCCCCC" size="small">Find digital photos, maps, videos, podcasts, and documents about Ontario people, places, events, history and culture. Search </font></p>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td>&nbsp;</td>
            <td width="50%"><a href="http://search.ourontario.ca/search">OurOntario.ca</a>.</td>
            <td>&nbsp;</td>
          </tr>
        </table>
      </form>
    </td>
    <td width="8">&nbsp;</td>
  </tr>
</table>
<table width="286" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><img src="http://www.ourontario.ca/portlets/_common/minisearch_bg.jpg" width="286" height="11"></td>
  </tr>
</table>