个人存款计算器.doc
上传人:sy****28 上传时间:2024-09-14 格式:DOC 页数:11 大小:175KB 金币:16 举报 版权申诉
预览加载中,请您耐心等待几秒...

个人存款计算器.doc

个人存款计算器.doc

预览

免费试读已结束,剩余 1 页请下载文档后查看

16 金币

下载此文档

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

附录1附录2个人存款计算器jsp源代码<%@pagelanguage="java"pageEncoding="GBK"%><!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>个人存款计算器</title><linkhref="../Styles/styles.css;pvf21b76d3545dc298"rel="Stylesheet"type="text/css"/><scriptlanguage="javascript">functionperSaving(){varamount=document.per_form.amountTextBox.valuevaryrate=document.per_form.yRateTextBox.valuevarterm=document.per_form.termTextBox.valueif(amount==""){alert("请输入存款金额!")document.per_form.amountTextBox.focus()window.event.returnValue=false;return}if(yrate==""){alert("请输入年利率或选择期限种类!")document.per_form.yRateTextBox.focus()window.event.returnValue=false;return}if(term==""){alert("请输入存期!")document.per_form.termTextBox.focus()window.event.returnValue=false;return}if(isNaN(amount)){alert("请输入数字!")document.per_form.amountTextBox.focus()window.event.returnValue=false;return}if(isNaN(yrate)){alert("请输入数字!")document.per_form.yRateTextBox.focus()window.event.returnValue=false;return}if(isNaN(term)){alert("请输入数字!")document.per_form.termTextBox.focus()window.event.returnValue=false;return}vartaxrate=0.00;varinterest=amount*yrate*term*0.01/12vartax=taxrate*amount*yrate*term*0.01/12varresult=amount*(1+(1-taxrate)*yrate*term*0.01/12)interest=Math.round(interest*100)interest=interest/100interest=interest+""document.per_form.interestTextBox.value=interesttax=Math.round(tax*100)tax=tax/100tax=tax+""document.per_form.taxTextBox.value=taxresult=Math.round(result*100)result=result/100result=result+""document.per_form.resultTextBox.value=resultwindow.event.returnValue=false;}</script><scriptlanguage="javascript">functioncheckTerm(){varduring=document.per_form.duringDropDownlist.valuevarcurrencyDropDownList=document.per_form.currencyDropDownList.valueif(currencyDropDownList=="人民币"){if(during=="活期"){document.per_form.termTextBox