gecko-dev/webshell/tests/viewer/samples/test8.html

122 lines
3.5 KiB
HTML
Raw Normal View History

1998-04-13 20:24:54 +00:00
<html>
1998-05-19 17:51:21 +00:00
<head>
<title>Example 8</title>
1998-05-19 17:51:21 +00:00
<style>
INPUT#input1 {
font-size: large;
}
INPUT#input2 {
font-size: medium;
}
TEXTAREA#textarea1 {
width: 300px;
height: 120px;
font-size: large;
}
SELECT#select1 {
font-size: large;
}
1998-10-17 00:35:32 +00:00
BUTTON {
background-image: url(rock_gra.gif);
}
1998-05-19 17:51:21 +00:00
</style>
</head>
1998-04-13 20:24:54 +00:00
<body>
<H1>Example 8: Forms</H1>
<BR>
<FORM METHOD="GET" ACTION="http://search.yahoo.com/bin/search" NAME="searchform">
<FIELDSET style="background-color: rgb(200, 220, 240); display: inline; border: 2px solid black; padding: 10px;">
<LEGEND style="background-color:rgb(180, 200, 220); border: 1px solid gray; padding: 0px;" align=left>&nbsp;Find it <b>Fast</b>&nbsp;</LEGEND>
<INPUT type=text value=travel NAME="p" SIZE=15 MAXLENGTH=80 style="margin-right:10px; background-color: rgb(190, 190, 190);">
<INPUT type=submit value="GO">
<INPUT TYPE="HIDDEN" NAME="a" VALUE="n">
</FIELDSET>
&nbsp;&nbsp<INPUT type=image src=raptor.jpg width=50 height=50 name=imageSubmit>
1998-10-17 00:35:32 +00:00
<BR><BR>
<BUTTON type=submit style="border: 5px outset gray; padding: 3px;">
<font size=4><B>This big button contains a table
<table border=3><TR border=1><TD>CELL 1</TD><TD>CELL 2<TD></TR>
<TR><TD>CELL 3</TD><TD>CELL 4</TD></TR></table>
and a background image. It will also submit the form.
</B></font>
</BUTTON>
<BR>
</FORM>
1998-10-17 00:35:32 +00:00
<BR><BR>
<FORM METHOD="POST" ACTION="http://www.mcp.com/cgi-bin/post-query" NAME="echo">
1998-05-19 17:51:21 +00:00
<textarea name=a rows=4 cols=10 value="a textarea">a textarea</textarea>
&nbsp;&nbsp;
<textarea name=a id=textarea1 value="a textarea">another textarea
size, font set by css</textarea>
<BR><BR>
checkboxes:&nbsp;&nbsp; <input type=checkbox name=check1 checked> &nbsp;<input type=checkbox name=check2>
&nbsp;&nbsp; a password:&nbsp;&nbsp;<INPUT TYPE="PASSWORD">
1998-05-19 17:51:21 +00:00
<BR><BR>
<input type=radio name=group1> radio1
<BR>
1998-05-19 17:51:21 +00:00
<input type=radio name=group1 checked> radio2
<BR><BR>
<select name=select2 id=select1 size=4 multiple>
1998-05-13 17:43:35 +00:00
<option>option 1</option>
<option>option 2</option>
<option selected>option 3</option>
<option>option 4</option>
<option>option 5</option>
<option>option 6</option>
</select>
1998-05-19 17:51:21 +00:00
<select name=select1 size=2>
<option selected>option 1</option>
<option>option 2</option>
</select>
1998-05-13 17:43:35 +00:00
<select name=select3 size=1>
<option selected>option 1</option>
<option>option 2</option>
</select>
1998-05-19 17:51:21 +00:00
<BR><BR>
<input type=file size=20 name=file value=myfile>&nbsp;&nbsp;file content not being sent yet
<BR>
1998-05-19 17:51:21 +00:00
<input type=reset name=reset id=input2 value="RESET">
<input type=submit id=input1 name=submit value="SUBMIT">
1998-09-23 17:55:28 +00:00
<input type=image src=raptor.jpg width=50 height=50 name=imageSubmit> an image submit.
1998-04-13 20:24:54 +00:00
</form>
1998-05-29 22:44:13 +00:00
<BR>
<HR>
Disabled controls, the image submit should not submit the form.
1998-05-29 22:44:13 +00:00
<BR>
<FORM METHOD="GET" ACTION="http://search.yahoo.com/bin/search" NAME="searchform">
<input type=text size=5 disabled> &nbsp; <input type=submit disabled> &nbsp;
<INPUT type=image src=raptor.jpg width=50 height=50 name=imageSubmit disabled> &nbsp;
<input type=checkbox disabled> &nbsp; <input type=radio disabled> &nbsp;
<input type=reset disabled> &nbsp; <input type=file disabled> &nbsp;
<BR>
<textarea disabled>hello</textarea> &nbsp
<select disabled>
<option>one</option>
<option>two</option>
</select>
</form>
<BR>
1998-10-19 20:37:40 +00:00
<BR>
<HR>
Readonly controls
<BR>
<FORM>
<input type=text readonly size=5 value=hello readonly> &nbsp; <input type=password value=foo disabled> &nbsp;
<textarea readonly>bar</textarea>
</form>
<BR>
<HR>
1998-05-29 22:44:13 +00:00
Additional tests -&nbsp;
<A href=test8siz.html>sizing</A>,
<A href=test8sca.html>scalability</A>,
1998-09-23 17:55:28 +00:00
<A href=test8tab.html>tables</A>
1998-04-13 20:24:54 +00:00
</body>
</html>