vbscript的一个小问题。 急,急,急!

sharkshi 2002-09-12 02:28:13
<%@LANGUAGE="VBSCRIPT" CODEPAGE="CP_ACP"%>
<script language="VBScript">
function mess(tw)
Input = InputBox("Enter your name")
'这里如何写语句,得到txtw 的值,即得到"wwwwwwww "
end function

</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>
<a name="txtw" onClick="mess(txtw)"><font color="#CC3300"> wwwwwwww </font> </a>
</body>
</html>
...全文
67 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
qiushuiwuhen 2002-09-12
  • 打赏
  • 举报
回复
<%@LANGUAGE="VBSCRIPT" CODEPAGE="CP_ACP"%>
<script language="VBScript">
function mess(tw)
Input = InputBox("Enter your name")
'这里如何写语句,得到txtw 的值,即得到"wwwwwwww "
msgbox tw.innerText
end function

</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>
<a name="txtw" onClick="mess(txtw)"><font color="#CC3300"> wwwwwwww </font> </a>
</body>
</html>




ICAC2008 2002-09-12
  • 打赏
  • 举报
回复
<script language="VBScript">
function mess(tw)
Input = InputBox("Enter your name","这是对话框的标题文字",tw)
'这里如何写语句,得到txtw 的值,即得到"wwwwwwww "
end function

</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>
<a name="txtw" onClick="mess(txtw.innerText)"><font color="#CC3300">wwwwwwww</font> </a>
</body>
</html>
sharkshi 2002-09-12
  • 打赏
  • 举报
回复
再请教,在上面的网页中,如何把

<a name="txtw" onClick="mess(txtw.innerText)"><font color="#CC3300"> wwwwwwww </font> </a>

中的"wwwwwwww " 替换为刚才用inputbox窗体输入的值,
并显示出来?
iStringTheory 2002-09-12
  • 打赏
  • 举报
回复
<%@LANGUAGE="VBSCRIPT" CODEPAGE="CP_ACP"%>
<script language="VBScript">
function mess(txtw)
Input = InputBox("Enter your name")
'这里如何写语句,得到txtw 的值,即得到"wwwwwwww "
MsgBox(txtw)
end function

</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>
<a name="txtw" onClick="mess(txtw.innerText)"><font color="#CC3300"> wwwwwwww </font> </a>
</body>
</html>
iStringTheory 2002-09-12
  • 打赏
  • 举报
回复
<%@LANGUAGE="VBSCRIPT" CODEPAGE="CP_ACP"%>
<script language="VBScript">
function mess(txtw)
Input = InputBox("Enter your name")
'这里如何写语句,得到txtw 的值,即得到"wwwwwwww "
MsgBox(txtw)
end function

</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>
<a name="txtw" onClick="mess(wwwwwwww)"><font color="#CC3300"> wwwwwwww </font> </a>
</body>
</html>
meizz 2002-09-12
  • 打赏
  • 举报
回复
<script language="VBScript">
function mess(tw)
Input = InputBox("Enter your name","这是对话框的标题文字",tw)
'这里如何写语句,得到txtw 的值,即得到"wwwwwwww "
end function

</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>
<a name="txtw" onClick="mess(txtw.innerText)"><font color="#CC3300">wwwwwwww</font> </a>
</body>
</html>
freezwy 2002-09-12
  • 打赏
  • 举报
回复
需要给一个ID来获得。

28,391

社区成员

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

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