File:
[LON-CAPA] /
loncom /
html /
htmlarea /
popups /
Attic /
custom2.html
Revision
1.1:
download - view:
text,
annotated -
select for diffs
Wed Feb 18 08:07:16 2004 UTC (20 years, 6 months ago) by
www
Branches:
MAIN
CVS tags:
version_2_5_X,
version_2_5_99_0,
version_2_5_2,
version_2_5_1,
version_2_5_0,
version_2_4_X,
version_2_4_99_0,
version_2_4_2,
version_2_4_1,
version_2_4_0,
version_2_3_X,
version_2_3_99_0,
version_2_3_2,
version_2_3_1,
version_2_3_0,
version_2_2_X,
version_2_2_99_1,
version_2_2_99_0,
version_2_2_2,
version_2_2_1,
version_2_2_0,
version_2_1_X,
version_2_1_99_3,
version_2_1_99_2,
version_2_1_99_1,
version_2_1_99_0,
version_2_1_3,
version_2_1_2,
version_2_1_1,
version_2_1_0,
version_2_0_X,
version_2_0_99_1,
version_2_0_2,
version_2_0_1,
version_2_0_0,
version_1_99_3,
version_1_99_2,
version_1_99_1_tmcc,
version_1_99_1,
version_1_99_0_tmcc,
version_1_99_0,
version_1_3_X,
version_1_3_3,
version_1_3_2,
version_1_3_1,
version_1_3_0,
version_1_2_X,
version_1_2_99_1,
version_1_2_99_0,
version_1_2_1,
version_1_2_0,
version_1_1_99_5,
version_1_1_99_4,
version_1_1_99_3,
version_1_1_99_2,
version_1_1_99_1,
version_1_1_99_0,
HEAD
Install HTMLArea
1: <html style="width:300px; Height: 60px;">
2: <head>
3: <title>Select Phrase</title>
4: <script language="javascript">
5:
6: var myTitle = window.dialogArguments;
7: document.title = myTitle;
8:
9:
10: function returnSelected() {
11: var idx = document.all.textPulldown.selectedIndex;
12: var text = document.all.textPulldown[idx].text;
13:
14: window.returnValue = text; // set return value
15: window.close(); // close dialog
16: }
17:
18: </script>
19: </head>
20: <body bgcolor="#FFFFFF" topmargin=15 leftmargin=0>
21:
22: <form method=get onSubmit="Set(document.all.ColorHex.value); return false;">
23: <div align=center>
24:
25: <select name="textPulldown">
26: <option>The quick brown</option>
27: <option>fox jumps over</option>
28: <option>the lazy dog.</option>
29: </select>
30:
31: <input type="button" value=" Go " onClick="returnSelected()">
32:
33: </div>
34: </form>
35: </body></html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>