3 <link rel=
"stylesheet" type=
"text/css" href=
"spellerStyle.css"/>
5 <script src=
"controlWindow.js"></script>
7 <script type=
"text/javascript">
12 spellerObject
= parent
.opener
.speller
;
15 function ignore_word() {
17 spellerObject
.ignoreWord();
21 function ignore_all() {
23 spellerObject
.ignoreAll();
27 function replace_word() {
29 spellerObject
.replaceWord();
33 function replace_all() {
35 spellerObject
.replaceAll();
39 function end_spell() {
41 spellerObject
.terminateSpell();
52 if( controlWindowObj
) {
53 controlWindowObj
.setSuggestedText();
57 function init_spell() {
58 var controlForm
= document
.getElementById('spellcheck');
60 // create a new controlWindow object
61 controlWindowObj
= new controlWindow( controlForm
);
63 // call the init_spell() function in the parent frameset
64 if( parent
.frames
.length
) {
65 parent
.init_spell( controlWindowObj
);
67 alert( 'This page was loaded outside of a frameset. It might not display properly' );
75 <body class=
"controlWindowBody" onLoad=
"init_spell();">
77 <form id=
"spellcheck">
79 <table border=
"0" cellpadding=
"0" cellspacing=
"0" border=
"0">
81 <td colspan=
"3" class=
"normalLabel">Not in dictionary:
</td>
84 <td colspan=
"3"><input class=
"readonlyInput" type=
"text" name=
"misword" readonly
/></td>
87 <td colspan=
"3" height=
"5"></td>
90 <td class=
"normalLabel">Change to:
</td>
94 <table border=
"0" cellpadding=
"0" cellspacing=
"0" border=
"0">
96 <td class=
"normalLabel">
97 <input class=
"textDefault" type=
"text" name=
"txtsugg" />
102 <select class=
"suggSlct" name=
"sugg" size=
"7" onChange=
"suggText();" onDblClick=
"replace_word();">
109 <td> </td>
111 <table border=
"0" cellpadding=
"0" cellspacing=
"0" border=
"0">
114 <input class=
"buttonDefault" type=
"button" value=
"Ignore" onClick=
"ignore_word();" />
116 <td> </td>
118 <input class=
"buttonDefault" type=
"button" value=
"Ignore All" onClick=
"ignore_all();" />
122 <td colspan=
"3" height=
"5"></td>
127 <input class=
"buttonDefault" type=
"button" value=
"Replace" onClick=
"replace_word();" />
129 <td> </td>
131 <input class=
"buttonDefault" type=
"button" value=
"Replace All" onClick=
"replace_all();" />
135 <td colspan=
"3" height=
"5"></td>
139 <input class=
"buttonDefault" type=
"button" name=
"btnUndo" value=
"Undo" onClick=
"undo();" disabled
/>
141 <td> </td>
143 <input class=
"buttonDefault" type=
"button" value=
"Close" onClick=
"end_spell();" />