⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 2.htm

📁 <1> 优化了部分代码及一些BUG.提高了浏览速度 <2> 可以通过会员助手自由管理各种信息 <3> 修正了反馈信息及询价订单错误 <4>
💻 HTM
字号:
<html>
<head>
<title>购房工具</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="../style.css">
<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>
<link rel="stylesheet" href="../../style.css" type="text/css">
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div align="center"> 
  <table border=0 cellpadding=3 width=398 align="center">
    <tr> 
      <td background="../images/bg_sx1.gif" height="1"></td>
    </tr>
    <tr> 
      <td class=dd bgcolor="#FFCC00"><font 
                        class=font>自助购房计算器</font></td>
    </tr>
    <tr> 
      <td background="../images/bg_sx1.gif" height="1"></td>
    </tr>
    <tr> 
      <td> 
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td bgcolor="#FFCC00">
              <table width="100%" border="0" cellspacing="1" cellpadding="5" align="center">
                <form method=post name=calc1>
                  <tr bgcolor="#FFFFFF"> 
                    <td width="53%" class="font"> 单  价: 
                      <input name=dj size=10>
                      元/㎡<br>
                      房屋面积: 
                      <input 
                        name=mj size=10>
                      ㎡<br>
                      贷款方式: 
                      <select 
                        cname=fs size=1 name="fs">
                        <option selected 
                          value=a>公积金</option>
                        <option 
                        value=b>商业贷款</option>
                      </select>
                      <br>
                      贷款比例: 
                      <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>
                      <br>
                      还款期限: 
                      <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 valign="top" class="font" width="47%"> 房屋总价: 
                      <input name=op1 readOnly size=10>
                      元<br>
                      贷款总额: 
                      <input name=op2 readOnly size=10>
                      元<br>
                      首期付款: 
                      <input name=op3 readOnly size=10>
                      元<br>
                      月 还 款: 
                      <input name=op4 readOnly size=10>
                      元</td>
                  </tr>
                  <tr align="center" bgcolor="#FFFFFF"> 
                    <td colspan="2"> 
                      <input  id=button1 name=button1 onClick=OP() type=button value=开始计算>
                      <input name=Submit2 onClick=javascript:window.calc1.reset() type=reset value=重新计算>
                    </td>
                  </tr>
                </form>
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</div>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -