asp的inputbox问题,急急急!!!!

来源:百度知道 编辑:UC知道 时间:2024/06/06 12:57:25
<html>
<head>
<title></title>
<script language=vbscript>
<!--
sub eee()
inputbox("hello,world")
end sub
-->
</script>
</head>
<body>
<form>
<input name=yy type=button value=你好啊 onmouseover=eee()>
</form>
</body>
</html>

这个能够得到弹出来的方框,但是如果将上面的inputbox("hello,world")改为inputbox("hello,world","标题")或者其他的只要不全这个函数的,结果当鼠标出道"你好啊"这个按钮时,却没有弹出窗口了,到底是为什么啊,小弟拜求了,

使用
inputbox "hello,world","标题"
或者
call inputbox("hello,world","标题")
或者
str=inputbox("hello,world","标题")
都可以
vb中不接收返回值的函数调用语法同过程,过程调用参数一般不要括号(一个参数可以有括号),或者用call关键字显示调用

只有IE下才支持Inputbox.最好不要用

它只有一个参数,但有返回值,

<html>
<head>
<title></title>
<script language=vbscript>
<!--
sub eee()
ccc=inputbox("hello,world")
alert(ccc)
end sub
-->
</script>
</head>
<body>
<form>
<input name=yy type=button value=你好啊 onmouseover=eee()>
</form>
</body>
</html>