爱易网
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 浏览次数:20105 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<body>区域中 <bgsound id=bgsoundone 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.value="0.00" else document.fmSubmit.t1.value=num end if document.fmSubmit.t2.value="" hji=1 call read() End Sub SUB read() MyVar=mid(hj,hji,1) document.fmSubmit.t2.value=document.fmSubmit.t2.value+MyVar Select Case MyVar Case "零" document.all("bgsoundone").src="wav/0.wav" Case "壹" document.all("bgsoundone").src="wav/1.wav" Case "贰" document.all("bgsoundone").src="wav/2.wav" Case "叁" document.all("bgsoundone").src="wav/3.wav" Case "肆" document.all("bgsoundone").src="wav/4.wav" Case "伍" document.all("bgsoundone").src="wav/5.wav" Case "陆" document.all("bgsoundone").src="wav/6.wav" Case "柒" document.all("bgsoundone").src="wav/7.wav" Case "捌" document.all("bgsoundone").src="wav/8.wav" Case "玖" document.all("bgsoundone").src="wav/9.wav" Case "拾" document.all("bgsoundone").src="wav/10.wav" Case "佰" document.all("bgsoundone").src="wav/b.wav" Case "仟" document.all("bgsoundone").src="wav/q.wav" Case "万" document.all("bgsoun
上一篇:狡猾的按钮特效
下一篇:检查窗口的关闭打开
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
HTC与苹果三星距离扩展 C2B形式成新武器
联通丹东公司一高管造假套出手机变卖被判刑7年
神州泰岳雪上加霜:副总违规买卖遭罚
美国政府关门可能影响去哪儿等公司IPO
都是300元内 乐视盒子与小米盒子对比体验
中兴引进黑莓三个核心团队
传谷歌开发者大会发布Android 4.3 并非5.0版本
埃里克杰克森:阿里IPO估值至少1500亿美元
从3G牌照发放看中国4G规划效果
推荐阅读
更多>
O2O成"唐僧肉":百度糯米抢食第一口令阿里腾讯颤抖
电信资费新政:三巨头压力大 短期降价仍有争议
前苹果顾问批判iPhone命名:不应加S
埃里克杰克森:阿里IPO估值至少1500亿美元
神州电脑中止IPO面前:再被质疑财务造假
只有切到刚需痛点,漫画APP才能走下去
9158屌丝逆袭 从在线“夜总会”转型KTV
史玉柱此刻离任:营销巨匠为新游戏炒作?
曝阿里巴巴一怀孕员工过劳死 加班情况引争议
原万网CTO周雷加盟亿玛 出任CTO一职
唯品会荣登“最贵中概股”的欢喜与哀愁
小米盗版有理激怒乐视:提500部盗播证据猛追打
从WPS到office365,中国企业能否赶超美国?
从百度世界大会看大数据
华为变阵:任正非调整三大业务布局
中移动将推出多项4G资费新政
苹果MacBook Air劣势渐显 或推新产品改变命运
这一次,微软将带给我们什么惊喜?
京东封杀财付通:终极目标是电商生态圈
百度透露无人驾驶战略 研发三维交通地图