forked from dbedard/widgets-VITA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariantcodeforms
65 lines (51 loc) · 2.9 KB
/
variantcodeforms
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
There are several variations on the widget code, depending on the size limitations, the desire for branding graphics, and the need to support older code spaces ( like FBML)
<b>Four examples are at:</b>
http://www.ourontario.ca/demo/searchwidget.html
<b>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>
<b>More Complex Form</b>
<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>
<b>Linkable version of this form</b>
http://www.ourontario.ca/portlets/oo/minisearch.html
<b>Older HTML Form for Facebook and similar (restricted) pages</b>
<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"> </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> </td>
<td width="50%"><a href="http://search.ourontario.ca/search">OurOntario.ca</a>.</td>
<td> </td>
</tr>
</table>
</form>
</td>
<td width="8"> </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>