Annotation of loncom/html/htmlarea/popups/custom2.html, revision 1.1
1.1 ! www 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>