Why my script not working? please help me!!!

weity 2000-04-21 09:50:00
my script not working!

<center>
<h1>Test P72 of VbScript</h1>
<hr color="#FF00CC">
<input type="submit" name="btn1" value="text 1" >
<input type="button" name="btn2" value="text 2">
<input type="button" name="btn3" value="text 3">
<br><br>
<input type="text" name="txt1" value="this is text1">
<input type="text" name="txt2" value="this is text2">
<input type="text" name="txt3" value="this is text3">
<script language="vbs">
<!--
sub btn1_onclick
txt1.focus 'Please notice this !!!
'msgbox txt1.value & " have get focus!",0,"what are you?"
end sub

sub btn1_onclick
txt2.select
end sub

sub btn1_onclick
txt3.blur
end sub

sub txt1_onfocus
msgbox txt1.value & " have get focus!" & "What are you?",0,"how did you do?"
end sub

//-->
</script>
</center>
why ????
...全文
193 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
蝈蝈俊 2000-04-26
  • 打赏
  • 举报
回复
btn1_onclick
为何您有三个btn1_onclick????????
zdg 2000-04-21
  • 打赏
  • 举报
回复
ASP文件为什么不用<%和%>呢???

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧