爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
人民币数字转换为文字大写程序
人民币数字转换为文字大写程序
日期:2014-05-18 浏览次数:20101 次
以下是程序代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html;charset=gb2312"> <meta name="keywords" content="站长,网页特效,网页特效代码,js特效,js脚本,脚本,广告代码,zzjs,zzjs.net,www.zzjs.net,站长特效 网" /> <meta name="description" content="www.zzjs.net,站长特效网,站长必备js特效及广告代码。大量高质量js特效,提供高质量广告代码下载,尽在站长特效网" /> <title>网页特效 人民币数字金额转换为大写金额 站长特效网欢迎您。</title> <bgsound id="www_zzjs_net" src="" loop="1"> <SCRIPT LANGUAGE="VBScript"> dim hj,hji sub document_onkeypress() if window.event.srcelement.id="num" and window.event.keycode="13" then call retu_cn() end if end sub sub window_onload() document.fmSubmit.t1.focus() end sub SUB retu_cn() dim n,m_hj,s,ch,ch2,ch3,num num=Replace(trim(document.fmSubmit.t1.value),",","",1,-1,1) if num="" then MsgBox "您还没有输入金额!" document.fmSubmit.t1.focus() exit sub End If if IsNumeric(num)=False then MsgBox "您输入的不是金额!" document.fmSubmit.t1.focus() exit sub End If n=FormatNumber(num,2) num=n n=Replace(n,",","",1,-1,1) If len(n)>15 Then MsgBox "金额必须小于千亿!" document.fmSubmit.t1.focus() exit sub End If hj=space(0) s="840" ch="壹贰叁肆伍陆柒捌玖" ch2="仟佰拾 " ch3="亿万元" for x=1 to 3 m=cstr(int(n/10^FormatNumber(mid(s,x,1),0,-1))) m=space(4-len(m))+m m_hj=space(0) if m<>" 0" then for y=1 to 4 if mid(m,y,1)<>space(1) and mid(m,y,1)<>"0" then m_hj=trim(m_hj+mid(ch,FormatNumber(mid(m,y,1),0,-1),1)+mid(ch2,y,1)) else if mid(m,y,1)=space(1) or mid(m,y,1)="0" then m_hj=m_hj if right(m_hj,1)="零" then m_hj=m_hj+space(0) else m_hj=m_hj+"零" end if else m_hj=m_hj end if end if next if right(m_hj,1)="零" then m_hj=mid(m_hj,1,len(m_hj)-1)+mid(ch3,x,1) if x=3 then m_hj=m_hj+space(0) else m_hj=m_hj+"零" end if else m_hj=m_hj+mid(ch3,x,1) end if if right(hj,1)="零" and mid(m_hj,1,1)="零" then hj=hj+mid(m_hj,2,len(m_hj)-1) else hj=hj+m_hj end if else if x=3 then if right(hj,1)="零" then if trim(hj)="零" then hj=hj+space(0) else hj=mid(hj,1,len(hj)-1)+"元" end if else if trim(hj)="零" then hj=hj+space(0) else hj=hj+"元" end if end if else if right(hj,1)="零" then hj=hj+space(0) else hj=hj+"零" end if end if end if if n-int(n)=0 then n=n-int(FormatNumber(m,0,-1))*10^int(FormatNumber(mid(s,x,1),0,-1)) else tt=FormatNumber("0."+mid(cstr(n),Instr(1,n,".")+1,2),2) n=int(n) n=n-int(FormatNumber(m,0,-1))*10^int(FormatNumber(mid(s,x,1),0,-1)) n=n+tt end if next m=mid(cstr(n),2,2) if trim(len(m))<>2 then m=m+"0" end if if n*100=0 then if left(hj,1)="零" then if right(hj,1)="零" then hj=hj+"元整" else hj=mid(hj,2,len(hj)-1)+"整" end if else if right(hj,1)="零" then hj=mid(hj,1,len(hj)-1)+"整" else hj=hj+"整" end if end if else if right(hj,1)="零" then hj=mid(hj,1,len(hj)-1) else hj=hj if mid(m,1,1)="0" or mid(m,1,1)=space(1) then hj=hj+"零" else hj=hj+mid(ch,FormatNumber(mid(m,1,1),0,-1),1)+"角" end if end if if mid(hj,1,1)="零" then hj=mid(hj,2,len(hj)-1) else hj=hj end if if mid(m,2,1)="0" then hj=hj+"整" else hj=hj+mid(ch,FormatNumber(mid(m,2,1),0,-1),1)+"分" end if end if if num=".00" then document.fmSubmit.t1.</div></div> <div class="clearfix"></div> </div> <nav aria-label="..."> <ul class="pager"> <li class="previous"><a href="4667">上一篇:狡猾的按钮特效</a></li> <li class="next"><a href="2360">下一篇:左侧隐藏QQ客服代码</a></li> </ul> </nav> <div class="alert alert-warning" role="alert"> <strong>免责声明:</strong> 本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。 </div> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">相关资料<span><a target="_blank" class="pull-right" href="/ItNews/">更多></a></span></h3> </div> <div class="panel-body row"> <ol> <div class="col-md-6 col-xs-12"> <li class="articleAbout"><a href='/ItNews/34152' title='谷歌安卓全球副总裁为何跳槽中国企业小米?' target="_blank"> 谷歌安卓全球副总裁为何跳槽中国企业小米?</a></li></div> <div class="col-md-6 col-xs-12"> <li class="articleAbout"><a href='/ItNews/34121' title='一个非脑残米粉的思考:小米“成功之道”如何炼成' target="_blank"> 一个非脑残米粉的思考:小米“成功之道”如何炼成</a></li></div> <div class="col-md-6 col-xs-12"> <li class="articleAbout"><a href='/ItNews/34419' title='欧洲6万人起诉Facebook隐私侵权' target="_blank"> 欧洲6万人起诉Facebook隐私侵权</a></li></div> <div class="col-md-6 col-xs-12"> <li class="articleAbout"><a href='/ItNews/34412' title='亚马逊落户上海自贸区:美国货直邮中国' target="_blank"> 亚马逊落户上海自贸区:美国货直邮中国</a></li></div> <div class="col-md-6 col-xs-12"> <li class="articleAbout"><a href='/ItNews/34268' title='170号码扎堆上市:手机话费私人定制时代到来?' target="_blank"> 170号码扎堆上市:手机话费私人定制时代到来?</a></li></div> <div class="col-md-6 col-xs-12"> <li class="articleAbout"><a href='/ItNews/34264' title='中移动一季度净利大降:手机补贴增长过快' target="_blank"> 中移动一季度净利大降:手机补贴增长过快</a></li></div> <div class="col-md-6 col-xs-12"> <li class="articleAbout"><a href='/ItNews/34221' title='京东联席董事长赵国庆上市前夕离职' target="_blank"> 京东联席董事长赵国庆上市前夕离职</a></li></div> <div class="col-md-6 col-xs-12"> <li class="articleAbout"><a href='/ItNews/34266' title='金山毒霸安全中心: XP退役后首个高危漏洞来了' target="_blank"> 金山毒霸安全中心: XP退役后首个高危漏洞来了</a></li></div> <div class="col-md-6 col-xs-12"> <li class="articleAbout"><a href='/ItNews/6914' title='App Store严禁推送广告 运用面临大清洗' target="_blank"> App Store严禁推送广告 运用面临大清洗</a></li></div> </ol> </div> </div> </div> <div class="col-lg-4 hidden-sm hidden-xs"> <!--右边的内容--> <a id="AdPageRight1_AdPageRight" href="http://www.tdyun.com/host/?aiyiweb" target="_blank"><img class="img-responsive" src="/images/TdPageAd/hostTest15dayCdn.png" alt="香港全能空间 免费试用15天,送网站加速30M" /></a> <script src='/Scripts/AdContentPage300_1.js' language='javascript'></script> <script src='/Scripts/AdContentPage300_2.js' language='javascript'></script> <script src='/Scripts/AdContentPage300_3.js' language='javascript'></script> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">推荐阅读<span><a target="_blank" class="pull-right" href="/ItNews/">更多></a></span></h3> </div> <div class="panel-body"> <ol> <li class="articleAbout"><a href=/ItNews/34222 title='京东很忙:升服务推产品更新招股书 能赶在阿里前上市?' target="_blank"> 京东很忙:升服务推产品更新招股书 能赶在阿里前上市?</a></li> <li class="articleAbout"><a href=/ItNews/34420 title='百度透露无人驾驶战略 研发三维交通地图' target="_blank"> 百度透露无人驾驶战略 研发三维交通地图</a></li> <li class="articleAbout"><a href=/ItNews/10805 title='摩托罗拉中国区将再裁员 助力公司变身 ' target="_blank"> 摩托罗拉中国区将再裁员 助力公司变身 </a></li> <li class="articleAbout"><a href=/ItNews/34339 title='电信业营改增今起实施 运营商短期利润骤降' target="_blank"> 电信业营改增今起实施 运营商短期利润骤降</a></li> <li class="articleAbout"><a href=/ItNews/34360 title='华为美国推出电商网站 发售Mate 2LTE版' target="_blank"> 华为美国推出电商网站 发售Mate 2LTE版</a></li> <li class="articleAbout"><a href=/ItNews/34301 title='广电总局回应美剧下架:不是所有信息可公开' target="_blank"> 广电总局回应美剧下架:不是所有信息可公开</a></li> <li class="articleAbout"><a href=/ItNews/34382 title='二维码支付大战的号角注定已经吹响,尚需标准发放' target="_blank"> 二维码支付大战的号角注定已经吹响,尚需标准发放</a></li> <li class="articleAbout"><a href=/ItNews/34409 title='雷军会做赔钱生意?迅雷跌破发行价 市值仅7亿美元' target="_blank"> 雷军会做赔钱生意?迅雷跌破发行价 市值仅7亿美元</a></li> <li class="articleAbout"><a href=/ItNews/16162 title='优酷土豆携手新浪微博 谋攻移动视频失地' target="_blank"> 优酷土豆携手新浪微博 谋攻移动视频失地</a></li> <li class="articleAbout"><a href=/ItNews/6899 title='高通拼抢国际芯片市场 联发科海外拓展难安心' target="_blank"> 高通拼抢国际芯片市场 联发科海外拓展难安心</a></li> <li class="articleAbout"><a href=/ItNews/677 title='微信收费形式三选一 腾讯或变身运营商' target="_blank"> 微信收费形式三选一 腾讯或变身运营商</a></li> <li class="articleAbout"><a href=/ItNews/34121 title='一个非脑残米粉的思考:小米“成功之道”如何炼成' target="_blank"> 一个非脑残米粉的思考:小米“成功之道”如何炼成</a></li> <li class="articleAbout"><a href=/ItNews/16167 title='Kindle入华遭遇国内厂商“围剿 ” 电信也参战' target="_blank"> Kindle入华遭遇国内厂商“围剿 ” 电信也参战</a></li> <li class="articleAbout"><a href=/ItNews/34218 title='中国首台比特币ATM登陆上海 可购买不可兑换现钞' target="_blank"> 中国首台比特币ATM登陆上海 可购买不可兑换现钞</a></li> <li class="articleAbout"><a href=/ItNews/34137 title='国网公司将加快组建 业界人士称困难重重' target="_blank"> 国网公司将加快组建 业界人士称困难重重</a></li> <li class="articleAbout"><a href=/ItNews/674 title='微软最后的救命稻草Win 8份额继续上升' target="_blank"> 微软最后的救命稻草Win 8份额继续上升</a></li> <li class="articleAbout"><a href=/ItNews/34136 title='首批四款“官方”打车软件发布:均为安卓版本' target="_blank"> 首批四款“官方”打车软件发布:均为安卓版本</a></li> <li class="articleAbout"><a href=/ItNews/10820 title='从3G牌照发放看中国4G规划效果 ' target="_blank"> 从3G牌照发放看中国4G规划效果 </a></li> <li class="articleAbout"><a href=/ItNews/34361 title='英特尔涉嫌垄断 欧盟或开出史上最高罚单' target="_blank"> 英特尔涉嫌垄断 欧盟或开出史上最高罚单</a></li> <li class="articleAbout"><a href=/ItNews/6903 title='联想架构调整后:Think品牌或推智能手机' target="_blank"> 联想架构调整后:Think品牌或推智能手机</a></li> </ol> </div> </div> </div> </div> <div class="clearfix"></div> <footer class=" footer navbar-bottom"> <em>友情链接:</em> <a href="http://www.aiyiweb.com/" target="_blank">爱易网 </a> <a href="http://www.aiyiweb.com/" target="_blank">云虚拟主机技术 </a> <a href="http://www.aiyiweb.com/" target="_blank">云服务器技术 </a> <a href="http://www.aiyiweb.com/" target="_blank">程序设计技术 </a> <a href="http://www.aiyiweb.com/" target="_blank">开发网站 </a> <a href="http://www.aiyiweb.com/" target="_blank">APP开发教程 </a> <br /> <script type="text/javascript">(function(){document.write(unescape('%3Cdiv id="bdcs"%3E%3C/div%3E'));var bdcs = document.createElement('script');bdcs.type = 'text/javascript';bdcs.async = true;bdcs.src = 'http://znsv.baidu.com/customer_search/api/js?sid=15239353030108964139' + '&plate_url=' + encodeURIComponent(window.location.href) + '&t=' + Math.ceil(new Date()/3600000);var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(bdcs, s);})();</script> Copyright © 2013-2025 爱易网页 当前在线:499人 网站在13时57分50秒内访问总人数:137454人 当前 获取异常 <a href="https://beian.miit.gov.cn" target="_blank">粤ICP备18100884号-2 </a> <script charset="UTF-8" id="LA_COLLECT" src="//sdk.51.la/js-sdk-pro.min.js"></script> <script>LA.init({ id: "JszEmKrtpbU59dY5", ck: "JszEmKrtpbU59dY5" })</script> </footer> </div> </body> </html>