<html>
<head>
<title>改变字体的颜色</title>
<script>
function colors(color){
document.form1.id.style.color=color;
}
</script>
</head>
<body>
<form action=" " name="form1" method="post">
<input type="text" name="id" value="里" />
<select name="coid" οnchange="colors(this.value)">
<option value="red">红色</option>
<option value="green">绿色</option>
</select>
</form>
</body>
<head>
<title>改变字体的颜色</title>
<script>
function colors(color){
document.form1.id.style.color=color;
}
</script>
</head>
<body>
<form action=" " name="form1" method="post">
<input type="text" name="id" value="里" />
<select name="coid" οnchange="colors(this.value)">
<option value="red">红色</option>
<option value="green">绿色</option>
</select>
</form>
</body>
</html>
<html>
<body>
<a name="t" class="STYLE2" id="t" οnclick="chcolor();">登陆通行证</a>
<script type="text/javascript">
function chcolor(){
document.getElementById("t").style.color="red";
}
</script>
</body></html>