📄 input_checkbox.inc
字号:
<SCRIPT LANGUAGE="JavaScript1.2">//document.title = "Form Editor";//var highlightedText = window.dialogArguments; function returnCheckBox() { var text = escape( "<INPUT " ); text = text + escape( "TYPE=checkbox " ); if (document.checkbox.checkboxname.value != "") { text = text + escape( " NAME=" ); text = text + escape( document.checkbox.checkboxname.value ); } else {alert("You must type in a Name"); return true;} if (document.checkbox.checkboxvalue.value != "") { text = text + escape( " VALUE=" ); text = text + escape( document.checkbox.checkboxvalue.value ); } else {alert("You must type in a Value"); return true;} if (document.checkbox.eventcheckbox.value !== "" && document.checkbox.eventcheckboxValue.value !== "" ){ text += ' ' text = text + escape( document.checkbox.eventcheckbox.value); text += '="' text = text + escape( document.checkbox.eventcheckboxValue.value ); text += '"' } if (document.checkbox.Idcheckbox.value !== "" ){ text = text + escape( "Id=\"" ); text = text + escape( document.checkbox.Idcheckbox.value ); text = text + escape( "\"" ); } if (document.checkbox.ischeckedcheckbox.checked) { text = text + escape( " CHECKED"); } text +=' STYLE="' +document.checkbox.stylecheckbox.value+ '"' text += '>'; if (document.checkbox.checkboxcaption.value != "") { text = text + escape( document.checkbox.checkboxcaption.value ); } window.returnValue = text; window.close(); } //function paste_link() {//document.checkbox.text.value = highlightedText;//}</SCRIPT><form method=post name=checkbox><fieldset id=fldLayout style='left: 1.50em; top: 7.1em; width: 31.1em; height: 18.3000em;'><LEGEND>INPUT CHECKBOX</LEGEND></fieldset><div id=divcheckboxtName style='left: 2.50em; top: 10.1em; width: 5em; height: 1.2168em;'>Name: <SPAN STYLE="font: 16px; color:red;">*</SPAN></div><input style='left: 7.80em; top: 10.1em; width: 23.60em; height: 2.0000em;' name=checkboxname type=text value="" size=30><div id=divcheckboxValue style='left: 2.50em; top: 12.5em; width: 5em; height: 1.2168em;'>Value: <SPAN STYLE="font: 16px; color:red;">*</SPAN></div><input style='left: 7.80em; top: 12.5em; width: 23.60em; height: 2.0000em;' name=checkboxvalue type=text value="" size=30><div id=divCaptioncheckbox style='left: 2.50em; top: 15.3em; width: 5.0em; height: 1.2168em;'>Caption:</div><input style='left: 7.80em; top: 14.9em; width: 23.6em; height: 2.0000em;' name=checkboxcaption type=text value="" size=30><div id=divcheckboxEvents style='left: 2.50em; top: 17.4em; width: 5.0em; height: 1.2168em;'>Events:</div><div id=divcheckboxText style='left: 7.8em; top: 17.2em; width: 7.0em; height: 1.2168em;'><select name='eventcheckbox' style='width: 8.0em; height: 1.2168em;'><option value="" selected><option value="OnClick">OnClick</select></div><input style='left: 16.70em; top: 17.2em; width: 14.70em; height: 2.0000em;' name=eventcheckboxValue type=text value="" size=30><div id=divStylecheckbox style='left: 2.50em; top: 19.6em; width: 5.0em; height: 1.2168em;'>Style:</div><input style='left: 7.80em; top: 19.6em; width: 23.6em; height: 2.0000em;' name=stylecheckbox type=text value="" size=30><div id=divIdcheckbox style='left: 2.50em; top: 22.2em; width: 9.0em; height: 1.2168em;'>ID:</div><input style='left: 7.8em; top: 22.2em; width: 8.00em; height: 2.000em;' name=Idcheckbox type=text value="" size=30><div id=divIsChecked style='left: 16.70em; top: 22.4em; width: 5em; height: 1.2168em;'>Checked:</div><input style='left: 21.00em; top: 22.2em; width: 1.5em; height: 2.0000em;' name=ischeckedcheckbox type=checkbox><input style='left: 33.50em; top: 14.3em; width: 6em; height: 2.2000em;' value=OK type=button onClick='returnCheckBox()'><input style='left: 33.50em; top: 16.5em; width: 6em; height: 2.2000em;' value=Cancel type=button onClick='window.close()'></form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -