HTML 求救一下

来源:百度知道 编辑:UC知道 时间:2024/06/25 11:12:34
HTML 求救一下
悬赏分:0 - 离问题结束还有 14 天 21 小时
<html>
<head><title>留言板</title>
<script language="VBS" for="tijiao" event="onClick">
Sub 123()
Dim buttons,title,myvar,pormpt
buttons="vbOKCancel+cbInformation"
title="确认提交?"
pormpt="确认提交"
myvar=Msgbox(pormpt,title,buttons)
End Sub
</script>
</head>
<body bgcolor="#D6D3CE">
<onLoad="123">
<form>
<table align="center" width="468">
<tr>
<td width="25%" align="right" heigth="36">标题:</td>
<td width="300" height="36">
<input type="text" name="biaoti" size="50"></td>
</tr>
<tr>
<td valign="top"> 内容:</td&

脚本没有语法错误,我试验过可以出现对话框。另外myvar是你在函数里定义的一个变量
Dim buttons,title, myvar ,pormpt

肯定错了,<%和%>两个符号都不见你的。那个myvar是定义的一个变量(Dim buttons,title,myvar,pormpt )括号你的意思就是定义变量buttons,title,myvar,pormpt