您的位置:首页 > 运维架构 > Linux

贴段脚本...Linux命令批量执行,免密码登录配置

2016-01-26 19:22 495 查看
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>IE6下select控件option的模拟禁用</title>
<script>
function deal(id) {
var s = document.getElementById(id).options;
var l = s.length;
for(var i=0; i<l; i++){
if(s[i].disabled && s[i].selected) {
s[0].selected = "selected";
break;
}
}
}
</script>
</head>
<body>
请您选择无烟城市可以乘坐的最佳交通工具:
<select id="transport" onchange="deal('transport');">
<option>==请选择==</option>
<option>自行车</option>
<option style="color:#999999" disabled="disabled">奔驰</option>
<option>毛驴</option>
<option style="color:#999999" disabled="disabled">臭脚</option>
</select>
</body>
</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: