<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- -->
<HTML><HEAD><TITLE>我爱
计算机</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK
href="I Love You!.files/DefaultSkin.css"
type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
<SCRIPT language=Javascript
src="So Much!.files/Main.js"></SCRIPT>
<STYLE type=text/css>.STYLE4 {
COLOR: #ffffff
}
.STYLE5 {
FONT-WEIGHT: bold; FONT-SIZE: 16px; COLOR: #ffff00
}
.STYLE6 {
FONT-WEIGHT: bold; COLOR: #ccff33
}
</STYLE>
<SCRIPT>
function doCopy(type) {
if (type == 1) {
codeform.texturlarea.select();
rgn = codeform.texturlarea.createTextRange();
} else {
codeform.imageurlarea.select();
rgn = codeform.imageurlarea.createTextRange();
}
rgn.execCommand("Copy");
}
</SCRIPT>
</HEAD>
<BODY leftMargin=0 topMargin=0>
<TABLE height=24 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD class=WEB_Distance></TD></TR></TBODY></TABLE>
<TABLE class=center_tdbgall cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD class=WEB_Distance width=13 rowSpan=3>
<DIV style="WIDTH: 13px"></DIV></TD>
<TD class=WEB_left_all vAlign=top width=190 rowSpan=3> </TD>
<TD width=7 rowSpan=3>
<DIV style="WIDTH: 7px"></DIV></TD>
<TD vAlign=top> </TD>
<TD width=7 rowSpan=3>
<DIV style="WIDTH: 7px"></DIV></TD>
<TD class=WEB_Distance width=13 rowSpan=3>
<DIV style="WIDTH: 13px"></DIV></TD></TR>
<TR>
<TD vAlign=top height=10>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top width="76%" height=73>
<DIV align=center><BR><SPAN class=cmsA>进制转换计算器</SPAN></DIV>
<HR width="80%" SIZE=1>
<DIV align=center>
<TABLE cellSpacing=0 cellPadding=0 width="95%" border=0>
<TBODY>
<TR>
<TD height=30>
<TABLE cellSpacing=1 width="100%" align=center border=0>
<TBODY></TBODY></TABLE>
<TABLE class=Textbox cellSpacing=0 cellPadding=2 width=520
border=0>
<TBODY>
<TR>
<TD align=middle>
<TABLE cellSpacing=0 cellPadding=2 border=0>
<TBODY>
<TR>
<TD><B>10进制转成16进制:</B></TD>
<TD align=right><INPUT class=bt_mouseout style="PADDING-TOP: 0px" onclick=t1_16.value=v10toX(16,t1_10.value) type=button value=" 确 定 " name=button2></TD></TR>
<TR>
<TD align=right colSpan=2>十 进 制: <INPUT
name=t1_10> → 十六进制: <INPUT readOnly
name=t1_16></TD></TR></TBODY></TABLE>
<HR SIZE=1>
</TD></TR>
<TR>
<TD align=middle>
<TABLE cellSpacing=0 cellPadding=2 border=0>
<TBODY>
<TR>
<TD><B>16进制转成10进制:</B></TD>
<TD align=right><INPUT class=bt_mouseout style="PADDING-TOP: 0px" onclick=t2_10.value=vXto10(16,t2_16.value) type=button value=" 确 定 " name=button2></TD></TR>
<TR>
<TD align=right colSpan=2>十六进制: <INPUT name=t2_16>
→ 十 进 制: <INPUT readOnly
name=t2_10></TD></TR></TBODY></TABLE>
<HR SIZE=1>
</TD></TR>
<TR>
<TD align=middle>
<TABLE cellSpacing=0 cellPadding=2 border=0>
<TBODY>
<TR>
<TD><B>10进制转成2进制:</B></TD>
<TD align=right><INPUT class=bt_mouseout style="PADDING-TOP: 0px" onclick=t3_2.value=v10toX(2,t3_10.value) type=button value=" 确 定 " name=button2></TD></TR>
<TR>
<TD align=right colSpan=2>十 进 制: <INPUT
name=t3_10> → 二 进 制: <INPUT readOnly
name=t3_2></TD></TR></TBODY></TABLE>
<HR SIZE=1>
</TD></TR>
<TR>
<TD align=middle>
<TABLE cellSpacing=0 cellPadding=2 border=0>
<TBODY>
<TR>
<TD><B>2进制转成10进制:</B></TD>
<TD align=right><INPUT class=bt_mouseout style="PADDING-TOP: 0px" onclick=t4_10.value=vXto10(2,t4_2.value) type=button value=" 确 定 " name=button2></TD></TR>
<TR>
<TD align=right colSpan=2>二 进 制: <INPUT name=t4_2>
→ 十 进 制: <INPUT readOnly
name=t4_10></TD></TR></TBODY></TABLE>
<HR SIZE=1>
</TD></TR>
<TR>
<TD align=middle>
<TABLE cellSpacing=0 cellPadding=2 border=0>
<TBODY>
<TR>
<TD><B>10进制转成64进制:</B></TD>
<TD align=right><INPUT class=bt_mouseout style="PADDING-TOP: 0px" onclick=t5_64.value=v10toX(64,t5_10.value) type=button value=" 确 定 " name=button2></TD></TR>
<TR>
<TD align=right colSpan=2>十 进 制: <INPUT
name=t5_10> → 六四进制: <INPUT readOnly
name=t5_64></TD></TR></TBODY></TABLE>
<HR SIZE=1>
</TD></TR>
<TR>
<TD align=middle>
<TABLE cellSpacing=0 cellPadding=2 border=0>
<TBODY>
<TR>
<TD><B>64进制转成10进制:</B></TD>
<TD align=right><INPUT class=bt_mouseout style="PADDING-TOP: 0px" onclick=t6_10.value=vXto10(64,t6_64.value) type=button value=" 确 定 " name=button2></TD></TR>
<TR>
<TD align=right colSpan=2>六四进制: <INPUT name=t6_64>
→ 十 进 制: <INPUT readOnly
name=t6_10></TD></TR></TBODY></TABLE>
<HR SIZE=1>
</TD></TR>
<TR>
<TD align=middle>
<TABLE cellSpacing=0 cellPadding=2 border=0>
<TBODY>
<TR>
<TD><B>X进制转成Y进制:</B></TD>
<TD align=right><INPUT class=bt_mouseout style="PADDING-TOP: 0px" onclick=t7_y.value=vXtoY(s7nx.value,t7_x.value,s7ny.value) type=button value=" 确 定 " name=button2></TD></TR>
<TR>
<TD align=right colSpan=2><SELECT name=s7nx>
<SCRIPT>
t=""
for(x=2;x<65;x++)t+="<option value="+x+">"+x+"</option>"
document.write(t)
</SCRIPT>
</SELECT> 进制 <INPUT id=t7_x name=t7_x> → <SELECT
name=s7ny>
<SCRIPT>
t=""
for(x=2;x<65;x++)t+="<option value="+x+">"+x+"</option>"
document.write(t)
</SCRIPT>
</SELECT> 进制 <INPUT id=t7_y readOnly
name=t7_y></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<SCRIPT>
ss="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_@"
s7nx.value=10
function v10toX(n,m)
{
m=String(m).replace(/ /gi,"")
if(m=="")return ""
if(parseInt(m)!=m){M("请输入整数!");return ""}
var t=""
var a=ss.substr(0,n)
while(m!=0)
{
var b=m%n
t=a.charAt(b)+t
m=(m-b)/n
}
return t
}
function vXto10(n,m)
{
m=String(m).replace(/ /gi,"")
if(m=="")return ""
var a=ss.substr(0,n)
if(eval("m.replace(/["+a+"]/gi,'')")!=""){M("请输入"+n+"进制数!");return ""}
var t=0,c=1
for(var x=m.length-1;x>-1;x--)
{
t+=c*(a.indexOf(m.charAt(x)))
c*=n
}
return t
}
function vXtoY(n,m,y)
{
a=vXto10(n*1,m)
if(a=="")return ""
a=v10toX(y,a)
return a
}
</SCRIPT>
<BR></TD></TR></TBODY></TABLE><BR></DIV></TD>
<TD vAlign=top width="24%"><BR></TD>
</TR>
<TR>
<TD vAlign=top colSpan=2 height=74>
<HR width="95%" SIZE=1></TD>
</TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<STYLE type=text/css>BODY {
MARGIN: 0px
}
.STYLE1 {
COLOR: #0000ff
}
</STYLE>
<SCRIPT language=JavaScript>
<!--
function music(htmlurl){
var
newwin=window.open(htmlurl,"newsssWin_searchout","top=100,left=100,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=450,height=250");
newwin.focus();
return false;
}
//-->
</SCRIPT>
</BODY></HTML>