cSetup switches to "other" preset when modified

This commit is contained in:
zefie
2022-11-28 12:22:07 -05:00
parent e5c5428d06
commit d81c97b5f2

View File

@@ -74,7 +74,11 @@ hspace="0" vspace="0" fontsize="large" noscroll>
}
}
function setOther() {
count = document.connect.preset.length;
document.connect.preset.selectedIndex = count - 1;
updateService();
}
function updateService() {
srv = document.connect.preset[document.connect.preset.selectedIndex].value;
switch (srv) {
@@ -108,6 +112,8 @@ hspace="0" vspace="0" fontsize="large" noscroll>
alert("Coming soon!")
document.connect.preset.selectedIndex = document.connect.preset.selectedIndex - 1;
updateService();
case "other":
document.message.msg.value="Your custom service."
}
}
@@ -126,6 +132,7 @@ hspace="0" vspace="0" fontsize="large" noscroll>
<option value="local">Your local minisrv</option>
<option value="wni-prod">WebTV Production Default</option>
<option value="wni-int">WebTV Internal Default</option>
<option value="other">Other</option>
</select>
<tr><td absheight=6>
</table>
@@ -149,7 +156,7 @@ hspace="0" vspace="0" fontsize="large" noscroll>
&nbsp;Custom:&nbsp;&nbsp;&nbsp;
<td>
Address:
<input size=16 ASCIIONLY name=machine bgcolor=#444444 text=#cbcbcb cursor=#cc9933 value="74.76.120.18">
<input size=16 ASCIIONLY name=machine bgcolor=#444444 text=#cbcbcb cursor=#cc9933 value="74.76.120.18" onkeypress="setOther()">
&nbsp;&nbsp;&nbsp;Port:
<input size=5 ASCIIONLY NUMBERS name=port bgcolor=#444444 text=#cbcbcb cursor=#cc9933 value="1615">
</table>