日期:2014-05-16  浏览次数:20384 次

日语操作系统中,为什么message显示乱码
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <TITLE> New Document </TITLE>
  <META NAME="Generator" CONTENT="EditPlus">
  <META NAME="Author" CONTENT="">
  <META NAME="Keywords" CONTENT="">
  <META NAME="Description" CONTENT="">
<meta charset="gb2312">
<style type="text/css">
form
{
font-family:Arial;
font-size:14px;
width:300px;
}
fieldset
{
border:1px solid #ccc;
margin-bottom:10px;
}

fieldset.login input
{
width:125px;
}
legend
{
font-weight:bold;
font-size:1.1em;
}
label
{
display:block;
width:80px;
text-align:right;
float:left;
padding-right:10px;
margin:5px 0;

}

input
{
margin:5px 0;
}

input.text
{
padding:0 0 0 3px;
width:172px;
}

input.submit
{
margin:15px 0 0 70px;
}


</style>
<script language=javascript >

function checkRequired(elem)
{
if(elem.type=="checkbox"||elem.type=="radio")
return getInputsByName(elem.name).numChecked;
else 
return elem.value.length>0&&elem.value!=elem.defaultValue;
}

function getInputsByName(name)
{
var results=[];
results.numChecked=0;
var input=document.getElementsByTagName("input");
for(var i=0;i<input.length;i++)
{
if(input[i].name==name)
{
results.push(input[i]);

if(input[i].checked)
{
results.numChecked++;
}
}
}
return results;
}

window.onload=function()
{

document.getElementsByTagName("form")[0].onsubmit=function()
{
var elem=document.getElementById("age");
if(!checkRequired(elem))
{
alert("空です");
return false;
}
var elem=document.getElementById("name");
if(!checkRequired(elem))
{
alert("空です");
return false;
}
}
}

</script>
</HEAD>
 <BODY >
  <form action="" method="get">
<fieldset class="login">
<legend>Login Information</legend>
<label for ="username" class="hover">UserName</label>
<input type="text" id="userName" class="required text"></br>
<label for="password" class="hover">Password</label>
<input type="password" id="password" class="required text">
</fieldset>
<fieldset >
<legend>Personnal Information</legend>
<label for="name">Name</label>
<input type="text" id="name" class="required text"></br>

<label for="email">Email</label>
<input type="text" id="email" class="required email text"></br>


<label for="date">Date</label>
<input type="text" id="date" class="required date text"></br>


<label for="url">Website</label>
<input type="text" id="url" class="url text" value=&quo