最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
动态输入框的三个函数
时间:2022-06-30 09:55:57 编辑:袖梨 来源:一聚教程网
<%
Function cTextBox(name, value, size)
Response.Write""&vbcrlf
Response.Write cTextBox("NAME", "1", "12") &vbcrlf
End Function
Function cCheckBox(name, value, checked)
Response.Write"If checked = 1 Then Response.Write" CHECKED"
Response.Write">"
End Function
Function cRadio(name, value, checked)
Response.Write"If checked = 1 Then Response.Write" CHECKED"
Response.Write">"
End Function
%>
<%
'just declaring a couple of static variables here,
'but you can create cbname and cbvalue any way you like.
'use a recordset, or Request collection too:
cbname = "checkbox_name"
cbvalue = "act"
Response.Write "My Checkbox: "&cCheckBox(cbname, cbvalue, 1)&" "
'or, write a radio button like this:
Response.Write cRadio(cbname, cbvalue, 1)
%>
Function cTextBox(name, value, size)
Response.Write""&vbcrlf
Response.Write cTextBox("NAME", "1", "12") &vbcrlf
End Function
Function cCheckBox(name, value, checked)
Response.Write"If checked = 1 Then Response.Write" CHECKED"
Response.Write">"
End Function
Function cRadio(name, value, checked)
Response.Write"If checked = 1 Then Response.Write" CHECKED"
Response.Write">"
End Function
%>
<%
'just declaring a couple of static variables here,
'but you can create cbname and cbvalue any way you like.
'use a recordset, or Request collection too:
cbname = "checkbox_name"
cbvalue = "act"
Response.Write "My Checkbox: "&cCheckBox(cbname, cbvalue, 1)&" "
'or, write a radio button like this:
Response.Write cRadio(cbname, cbvalue, 1)
%>
相关文章
- 以下哪种非遗技艺是用针在纸上绣画 蚂蚁新村11月21日答案 11-22
- 江南百景图听风塔怎么样 11-22
- 原神恰斯卡圣遗物怎么搭配 11-22
- 2024年霸王茶姬11月22日口令是什么 2024.11.22霸王茶姬口令介绍 11-22
- 光遇11.21季节蜡烛在哪里 光遇11月21日季节蜡烛位置攻略 11-22
- 光遇11.21大蜡烛在哪里 光遇11月21日大蜡烛位置攻略 11-22