87,910
社区成员
发帖
与我相关
我的任务
分享
<html>
<head></head>
<body>
<script>
window.onload = function()
{
var sel = document.createElement("select");
document.body.appendChild(sel);
sel.add(new Option("1","1",false,false));
sel.add(new Option("2","2",false,false));
sel.add(new Option("3","3",false,false));
sel.add(new Option("4","4",false,true));
sel.add(new Option("5","5",false,false));
}
</script>
</body>
</html>
<html>
<head></head>
<body>
<script>
window.attachEvent("onload", function()
{
var sel = document.createElement("select");
document.body.appendChild(sel);
sel.add(new Option("1","1",false,true));
sel.add(new Option("2","2",false,true));
sel.add(new Option("3","3",false,true));
sel.add(new Option("4","4",true,true));
sel.add(new Option("5","5",false,true));
sel.add(new Option("6","6",false,true));
});
</script>
</body>
</html>
<html>
<head></head>
<body>
<script>
window.attachEvent("onload", function()
{
var sel = document.createElement("select");
document.body.appendChild(sel);
sel.add(new Option("1","1",false,false));
sel.add(new Option("2","2",false,false));
sel.add(new Option("3","3",false,false));
sel.add(new Option("4","4",true,true));
sel.add(new Option("5","5",false,false));
});
</script>
</body>
</html>
<html>
<head></head>
<body>
<script>
window.attachEvent("onload", function()
{
var sel = document.createElement("select");
document.body.appendChild(sel);
sel.add(new Option("1","1",false,false));
sel.add(new Option("2","2",false,false));
sel.add(new Option("3","3",false,false));
sel.add(new Option("4","4",false,true));
sel.add(new Option("5","5",false,false));
});
</script>
</body>
</html>