|
直接运行代码即可
- <HTML><HEAD><TITLE>按揭贷款买房计算工具</TITLE>
- <META http-equiv=Content-Type content="text/html; charset=gb2312">
- <SCRIPT language=<I>javascript</I>>
- <!--
- function processForm(form)
- {
- var score=0,temp=0,temp1=0,rate=0,i=0,temp2=0,temp3=0;
- rate = form.c3.value / 100 ;
- score = form.c1.value * rate ;
- temp2 = 1 + rate ;
- temp3 = temp2;
- for(i=1;i<form.c2.value;i++)
- {
- temp2 = temp2 * temp3 ;
- }
- temp1 = temp2 - 1 ;
- score = score * temp2 / temp1;
- form.result.value = score;
- }
- //-->
- </SCRIPT>
- <SCRIPT language=<I>javascript</I>>
- function runjs1(obj){dj1=parseFloat(obj.dj1.value)
- chsh1=parseInt(obj.chsh1.value)/10
- nsh1=parseInt(obj.nsh1.value)
- qsh=12*nsh1
- {if(nsh1<6)lx=parseFloat(0.0477)
- if(nsh1>=6)lx=parseFloat(0.0504)}
- ylx=lx/12
- mj1=parseFloat(obj.mj1.value)
- fkz1=dj1*mj1
- dkz1=fkz1*chsh1
- yj1=(ylx/(1-(1/(Math.pow(1+ylx,qsh)))))*dkz1
- hkz1=yj1*qsh
- obj.dkz1.value=Math.round(dkz1*100,5)/100
- obj.shf1.value=Math.round((fkz1-dkz1)*100,5)/100
- obj.yj1.value=Math.round(yj1*100,5)/100
- obj.fkz1.value=Math.round(fkz1*100,5)/100
- obj.lxfd1.value=Math.round((hkz1-dkz1)*100,5)/100
- obj.hkz1.value=Math.round(hkz1*100,5)/100 }
- </SCRIPT>
- <LINK href="images/style.css" type=text/css rel=stylesheet>
- <META content="MSHTML 6.00.2800.1522" name=GENERATOR></HEAD>
- <BODY text=#000000 bgColor=#ffffff leftMargin=0 topMargin=0 marginheight="0"
- marginwidth="0">
- <DIV align=center>
- <TABLE height=200 cellPadding=3 width=398 align=center border=0>
- <TBODY>
- <TR>
- <TD width=388 background="" height=1></TD></TR>
- <TR>
- <TD class=font width=388 bgColor=#ffcc00>按揭贷款计算器(林网专用)</TD></TR>
- <TR>
- <TD width=388 background="" height=1></TD></TR>
- <TR>
- <TD width=388>
- <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
- <TBODY>
- <TR>
- <TD bgColor=#ff9900>
- <TABLE cellSpacing=1 cellPadding=5 width="100%" align=center
- border=0>
- <FORM name=formt action="" method=post>
- <TBODY>
- <TR bgColor=#ffffff>
- <TD class=font width="52%" height=110>单价: <INPUT maxLength=6
- size=10 name=dj1> 元/㎡<BR>面积: <INPUT maxLength=7 size=10
- name=mj1> ㎡<BR>按揭成数: <SELECT style="FONT-SIZE: 12px" size=1
- name=chsh1> <OPTION value=8 selected>8成</OPTION> <OPTION
- value=7>7成</OPTION> <OPTION value=6>6成</OPTION> <OPTION
- value=5>5成</OPTION> <OPTION value=4>4成</OPTION> <OPTION
- value=3>3成</OPTION> <OPTION value=2>2成</OPTION></SELECT>
- <BR>按揭年数: <SELECT style="FONT-SIZE: 12px" size=1 name=nsh1>
- <OPTION value=2>2年(24期)</OPTION> <OPTION
- value=3>3年(36期)</OPTION> <OPTION value=4>4年(48期)</OPTION>
- <OPTION value=5>5年(60期)</OPTION> <OPTION
- value=6>6年(72期)</OPTION> <OPTION value=7>7年(84期)</OPTION>
- <OPTION value=8>8年(96期)</OPTION> <OPTION
- value=9>9年(108期)</OPTION> <OPTION
- value=10>10年(120期)</OPTION> <OPTION value=15
- selected>15年(180期)</OPTION> <OPTION
- value=20>20年(240期)</OPTION> <OPTION
- value=25>25年(300期)</OPTION> <OPTION
- value=30>30年(360期)</OPTION></SELECT> </TD>
- <TD class=font width="48%" rowSpan=2>房款总额: <INPUT size=10
- name=fkz1> 元<BR>贷款总额: <INPUT size=10 name=dkz1> 元<BR>首期付款:
- <INPUT size=10 name=shf1> 元<BR>月均还款: <INPUT size=10 name=yj1>
- 元<BR>还款总额: <INPUT size=10 name=hkz1> 元<BR>支付息款: <INPUT size=10
- name=lxfd1> 元 </TD></TR>
- <TR bgColor=#ffffff>
- <TD width="52%" height=36><INPUT onclick=runjs1(this.form) type=button value=开始计算 name=math1>
- <INPUT type=reset value=重新计算 name=Submit21>
- </TD></TR></FORM></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV></BODY></HTML>
复制代码 |
|