<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> 黑色头发test </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<script>
function a(){
document.getElementById("test").value = document.getElementById("test").value.toUpperCase();
}
function b(){
document.getElementById("test2").value = document.getElementById("test2").value.toLowerCase();
}
</script>
<BODY>
在这里输入小写,会自动转为大写:<input type=text id=test οnkeyup="a()"><br/>
在这里输入大写,会自动转为小写:<input type=text id=test2 οnkeyup="b()">
</BODY>
</HTML>
黑色头发:http://heisetoufa.iteye.com/
<HTML>
<HEAD>
<TITLE> 黑色头发test </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<script>
function a(){
document.getElementById("test").value = document.getElementById("test").value.toUpperCase();
}
function b(){
document.getElementById("test2").value = document.getElementById("test2").value.toLowerCase();
}
</script>
<BODY>
在这里输入小写,会自动转为大写:<input type=text id=test οnkeyup="a()"><br/>
在这里输入大写,会自动转为小写:<input type=text id=test2 οnkeyup="b()">
</BODY>
</HTML>
黑色头发:http://heisetoufa.iteye.com/