查字符ASCII值
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>查字符ASCII值</title>
<STYLE type=text/css>
BODY {
MARGIN-TOP: 8px
}
.style1 {
COLOR: #ff6633
}
TD {
FONT-SIZE: 9pt; LINE-HEIGHT: 15pt
}
A:link {
COLOR: #333333; TEXT-DECORATION: none
}
A:visited {
COLOR: #333333; TEXT-DECORATION: none
}
A:active {
COLOR: #ff6600; TEXT-DECORATION: none
}
A:hover {
COLOR: #ff6600
}
.upline {
BORDER-TOP: #ff6633 1px solid
}
.downline {
BORDER-BOTTOM: #ff6633 1px solid
}
.f1 {
FONT-SIZE: 12px; COLOR: #ff6633; FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif"; TEXT-DECORATION: none
}
.f2 {
FONT-SIZE: 12px; COLOR: #333333; FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif"; TEXT-DECORATION: none
}
</STYLE>
</head>
<body>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="760">
<tr>
<td width="100%"></td>
</tr>
<tr>
<TD height=30>
</TD>
</tr>
<tr>
<td width="100%">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber7">
<tr>
<td width="100%">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" id="AutoNumber9" style="border-collapse: collapse">
<tr>
<td width="103%" align="left" height="30">
<p align="center"><b>查字符ASCII值</b></td>
</tr>
<tr>
<td width="100%" align="left"><br>
<p align="center">
<SCRIPT language=JavaScript>
<!-- Begin
function showKeyCode()
{
var character = document.characterCode.character.value.substring(0,1);
var code = document.characterCode.character.value.charCodeAt(0);
var msg = "字符 \""+character+"\" 对应的ASCII码值为 "+code+".";
alert(msg);
}
// End -->
</SCRIPT>
<FORM name=characterCode>
<p align="center">
输入一个待查字符:
<INPUT name=character size=15>
<INPUT onclick=showKeyCode(); type=button value=显示字符ASCII码值>
</FORM><br><br>
</td>
</tr>
</TABLE>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%"></td>
</tr>
</table>
</center>
</div>
</body>
</html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>查字符ASCII值</title>
<STYLE type=text/css>
BODY {
MARGIN-TOP: 8px
}
.style1 {
COLOR: #ff6633
}
TD {
FONT-SIZE: 9pt; LINE-HEIGHT: 15pt
}
A:link {
COLOR: #333333; TEXT-DECORATION: none
}
A:visited {
COLOR: #333333; TEXT-DECORATION: none
}
A:active {
COLOR: #ff6600; TEXT-DECORATION: none
}
A:hover {
COLOR: #ff6600
}
.upline {
BORDER-TOP: #ff6633 1px solid
}
.downline {
BORDER-BOTTOM: #ff6633 1px solid
}
.f1 {
FONT-SIZE: 12px; COLOR: #ff6633; FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif"; TEXT-DECORATION: none
}
.f2 {
FONT-SIZE: 12px; COLOR: #333333; FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif"; TEXT-DECORATION: none
}
</STYLE>
</head>
<body>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="760">
<tr>
<td width="100%"></td>
</tr>
<tr>
<TD height=30>
</TD>
</tr>
<tr>
<td width="100%">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber7">
<tr>
<td width="100%">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" id="AutoNumber9" style="border-collapse: collapse">
<tr>
<td width="103%" align="left" height="30">
<p align="center"><b>查字符ASCII值</b></td>
</tr>
<tr>
<td width="100%" align="left"><br>
<p align="center">
<SCRIPT language=JavaScript>
<!-- Begin
function showKeyCode()
{
var character = document.characterCode.character.value.substring(0,1);
var code = document.characterCode.character.value.charCodeAt(0);
var msg = "字符 \""+character+"\" 对应的ASCII码值为 "+code+".";
alert(msg);
}
// End -->
</SCRIPT>
<FORM name=characterCode>
<p align="center">
输入一个待查字符:
<INPUT name=character size=15>
<INPUT onclick=showKeyCode(); type=button value=显示字符ASCII码值>
</FORM><br><br>
</td>
</tr>
</TABLE>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%"></td>
</tr>
</table>
</center>
</div>
</body>
</html>