📄 calc_4.asp
字号:
<HTML><HEAD><TITLE>贷款计算</TITLE>
<SCRIPT language=JavaScript>
function OP()
{
var afs=0.000;
if (document.calc1.dj.value == ""){
alert("请填写“单价”。");
return;
}
if (document.calc1.mj.value == ""){
alert("请填写“房屋面积”。");
return;
}
if (document.calc1.fs.options[document.calc1.fs.selectedIndex].value == "a"){
if (document.calc1.qx.options[document.calc1.qx.selectedIndex].value == "30"){
afs=48.03024;
}
if (document.calc1.qx.options[document.calc1.qx.selectedIndex].value == "25"){
afs=53.06015;
}
if (document.calc1.qx.options[document.calc1.qx.selectedIndex].value == "20"){
afs=60.86182;
}
if (document.calc1.qx.options[document.calc1.qx.selectedIndex].value == "15"){
afs=74.21960;
}
if (document.calc1.qx.options[document.calc1.qx.selectedIndex].value == "10"){
afs=101.48294;
}
if (document.calc1.qx.options[document.calc1.qx.selectedIndex].value == "5"){
afs=182.36563;
}
}
else{
if (document.calc1.qx.options[document.calc1.qx.selectedIndex].value == "30"){
afs=53.92689;
}
if (document.calc1.qx.options[document.calc1.qx.selectedIndex].value == "25"){
afs=58.69229;
}
if (document.calc1.qx.options[document.calc1.qx.selectedIndex].value == "20"){
afs=66.21647;
}
if (document.calc1.qx.options[document.calc1.qx.selectedIndex].value == "15"){
afs=79.28789;
}
if (document.calc1.qx.options[document.calc1.qx.selectedIndex].value == "10"){
afs=106.26114;
}
if (document.calc1.qx.options[document.calc1.qx.selectedIndex].value == "5"){
afs=187.66042;
}
}
document.calc1.op1.value = document.calc1.dj.value * document.calc1.mj.value;
document.calc1.op2.value = Math.ceil(document.calc1.dj.value * document.calc1.mj.value * document.calc1.bl.options[document.calc1.bl.selectedIndex].value);
document.calc1.op3.value = document.calc1.dj.value * document.calc1.mj.value - Math.ceil(document.calc1.dj.value * document.calc1.mj.value * document.calc1.bl.options[document.calc1.bl.selectedIndex].value);
document.calc1.op4.value = Math.ceil(document.calc1.dj.value * document.calc1.mj.value * document.calc1.bl.options[document.calc1.bl.selectedIndex].value) * afs / 10000;
}
</SCRIPT>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<LINK
href="../images/realty.css" rel=stylesheet type=text/css>
<META content="Microsoft FrontPage 5.0" name=GENERATOR></HEAD>
<BODY leftMargin=0 topMargin=5>
<SCRIPT language=javascript>
function openwin0(id) { window.open("old2buy_info.asp?Infoid="+id,"","height=523,width=510,left=70,top=0,resizable=no,scrollbars,status=no,toolbar=no,menubar=no,location=no");}
function openwin1(id) { window.open("old2_info.asp?Infoid="+id,"","height=523,width=510,left=70,top=0,resizable=no,scrollbars,status=no,toolbar=no,menubar=no,location=no");}
function openwin2(id) { window.open("lease_info.asp?Infoid="+id,"","height=523,width=510,left=70,top=0,resizable=no,scrollbars,status=no,toolbar=no,menubar=no,location=no");}
function openwin3(id) { window.open("lease_info2.asp?Infoid="+id,"","height=523,width=510,left=70,top=0,resizable=no,scrollbars,status=no,toolbar=no,menubar=no,location=no");}
function openwin4(id) { window.open("lease_info3.asp?Infoid="+id,"","height=523,width=510,left=70,top=0,resizable=no,scrollbars,status=no,toolbar=no,menubar=no,location=no");}
function openwin5(id) { window.open("zone_info.asp?Infoid="+id,"","height=523,width=590,left=70,top=0,resizable=no,scrollbars,status=no,toolbar=no,menubar=no,location=no");}
function opennewh(id) { window.open("newh_info.asp?infoid="+id,"","height=523,width=550,left=70,top=0,resizable=no,scrollbars,status=no,toolbar=no,menubar=no,location=no");}
function openme1() { window.open("sq_error.asp","","height=320,width=584,left=70,top=0,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,location=no");}
</SCRIPT>
<LINK href="../images/realty.css" rel=stylesheet type=text/css>
<LINK
href="../images/realty.css" rel=stylesheet type=text/css>
<LINK href="../images/realty.css"
rel=stylesheet type=text/css>
<TABLE width="500" border=0 align="center" cellPadding=2 cellSpacing=1 bgColor=#0066CC>
<FORM method=post name=calc1>
<TBODY>
<TR>
<TD align=middle class=title colSpan=2 height=22><FONT
color=#ffffff>购房计算器</FONT></TD>
</TR>
<TR bgcolor="#ecf1fb">
<TD height=20 class=title>请输入数据:</TD>
<TD class=title>计算结果:</TD>
</TR>
<TR bgcolor="#ecf1fb">
<TD height=26>单 价:
<INPUT name=dj size=10>
元/㎡</TD>
<TD>房屋总价:
<INPUT name=op1 readOnly size=10>
元</TD>
</TR>
<TR bgcolor="#ecf1fb">
<TD height=26>房屋面积:
<INPUT name=mj size=10>
㎡</TD>
<TD>贷款总额:
<INPUT name=op2 readOnly size=10>
元</TD>
</TR>
<TR bgcolor="#ecf1fb">
<TD height=26>贷款方式:
<SELECT name=fs size=1>
<OPTION selected value=a>公积金</OPTION>
<OPTION
value=b>商业贷款</OPTION>
</SELECT> </TD>
<TD>首期付款:
<INPUT name=op3 readOnly size=10>
元</TD>
</TR>
<TR bgcolor="#ecf1fb">
<TD height=26>贷款比例:
<SELECT name=bl size=1>
<OPTION selected value=0.9>9成</OPTION>
<OPTION
value=0.8>8成</OPTION>
<OPTION value=0.7>7成</OPTION>
<OPTION
value=0.6>6成</OPTION>
<OPTION value=0.5>5成</OPTION>
<OPTION
value=0.4>4成</OPTION>
<OPTION value=0.3>3成</OPTION>
<OPTION
value=0.2>2成</OPTION>
<OPTION value=0.1>1成</OPTION>
</SELECT> </TD>
<TD>月 还 款:
<INPUT name=op4 readOnly size=10>
元 </TD>
</TR>
<TR bgcolor="#ecf1fb">
<TD height=26>还款期限:
<SELECT name=qx size=1>
<OPTION selected value=30>30年</OPTION>
<OPTION
value=25>25年</OPTION>
<OPTION value=20>20年</OPTION>
<OPTION
value=15>15年</OPTION>
<OPTION value=10>10年</OPTION>
<OPTION
value=5>5年</OPTION>
</SELECT> </TD>
<TD rowSpan=2> </TD>
</TR>
<TR bgcolor="#ecf1fb">
<TD height=32 align=middle>
<INPUT class=unnamed1 id=button1 name=button1 onclick=OP() type=button value=开始计算>
<INPUT class=unnamed1 name=Submit2 onclick=javascript:window.calc1.reset() type=reset value=重新计算>
</TD>
</TR>
<TR>
<TD colSpan=2 height=8></TD>
</TR>
</FORM>
</TABLE>
</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -