用VBscript怎样建立一个下拉列表框?
请问各位高手,用VBscript怎样建立一个下拉列表框?帮举个例子行吗?
<html>
<head>
<title></title>
<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<script language="javascript">
function AddSelect(obj){
var str="<SELECT ID='selUpdate'>";
for (var i=0; i<10; i++)
{
str += "<OPTION>Item " + i + "</OPTION>";
}
str += "</SELECT>";
document.getElementById(obj).innerHTML = str;
}
</script>
</head>
<body>
<input type="button" value="create" onclick="AddSelect('select1');">
<div id="select1"></div>
</body>
</html>
我用的是JavaScript,比VBScript好,VBScript只有IE能执行
[此贴子已经被作者于2005-5-14 16:54:23编辑过]