网站首页 | 域名注册 | 虚拟空间 | 企业邮局 | 网站建设 | 网站推广 | 服务器合租 | 电子杂志 | 站长工具 
杭州网络公司、网站建设—奇灵网络
  文章 酷站 图库 下载  
 
搜索
  热门搜索: 素材图库 美女 导航条 求职简历 矢量 模板 特效 更多..
首   页 网络资讯 站长工具 站长必读 酷站欣赏 网页教程 css+div asp 站长赚钱 网站推广
  最新更新
 百度作弊网站定义和害处
 让百度重新收录你的网站的有效方…
 百度搜索联盟
 百度搜索技巧
 网站优化之服务器的选择
 最好的搜索引擎优化工具就是搜索…
 选择最佳关键词之10个技巧
 搜索引擎优化的最高境界是忘记搜…
 如何针对MSN搜索进行网站优化排名
 WEB2.0网站如何进行搜索引擎优化
  最新推荐
 黑蚂蚁互动
 新站快速收录,新手总结
 友情链接,其实很是伤人
 新式网站推广Web2.0的方法
 网络推广的流程步骤执行要务
 怎样推广电子杂志类网站\
 一个网站要怎样才能推广出去
 网站链接质量的判断方法
 百度主题封杀以下特征的行为
 Alexa常用的作弊方法总结
ASP获取拼音的缩写和第一个字母
作者:佚名   文章来源:网络   点击数:   更新时间:2007-7-30 11:51:31 
获取客户简称的拼音缩写
function getpy()
dim str
dim i
str=document.all.txtContactName.value
dim ret
for i=1 to len(str)
ret=ret&getpychar(mid(str,i,1))
next
document.all.txtSpellCode.value=ret
end function
getpychar=char
end if
end function
spellCode.vbs
'获取汉字拼音第一字母
function getpychar(char)
dim tmp
tmp=65536+asc(char)
if(tmp> =45217 and tmp <=45252) then
getpychar= "A"
elseif(tmp> =45253 and tmp <=45760) then
getpychar= "B"
elseif(tmp> =45761 and tmp <=46317) then
getpychar= "C"
elseif(tmp> =46318 and tmp <=46825) then
getpychar= "D"
elseif(tmp> =46826 and tmp <=47009) then
getpychar= "E"
elseif(tmp> =47010 and tmp <=47296) then
getpychar= "F"
elseif(tmp> =47297 and tmp <=47613) then
getpychar= "G"
elseif(tmp> =47614 and tmp <=48118) then
getpychar= "H"
elseif(tmp> =48119 and tmp <=49061) then
getpychar= "J"
elseif(tmp> =49062 and tmp <=49323) then
getpychar= "K"
elseif(tmp> =49324 and tmp <=49895) then
getpychar= "L"
elseif(tmp> =49896 and tmp <=50370) then
getpychar= "M"
elseif(tmp> =50371 and tmp <=50613) then
getpychar= "N"
elseif(tmp> =50614 and tmp <=50621) then
getpychar= "O"
elseif(tmp> =50622 and tmp <=50905) then
getpychar= "P"
elseif(tmp> =50906 and tmp <=51386) then
getpychar= "Q"
elseif(tmp> =51387 and tmp <=51445) then
getpychar= "R"
elseif(tmp> =51446 and tmp <=52217) then
getpychar= "S"
elseif(tmp> =52218 and tmp <=52697) then
getpychar= "T"
elseif(tmp> =52698 and tmp <=52979) then
getpychar= "W"
elseif(tmp> =52980 and tmp <=53688) then
getpychar= "X"
elseif(tmp> =53689 and tmp <=54480) then
getpychar= "Y"
elseif(tmp> =54481 and tmp <=62289) then
getpychar= "Z"
else '如果不是中文,则不处理
getpychar=char
end if
end function
教程录入:admin    责任编辑:admin 
  • 上一篇教程:

  • 下一篇教程:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
      网友评论:(评论内容只代表网友观点,与本站立场无关!)
     姓 名:
     评 分: 1分 2分 3分 4分 5分
     评论内容:
  • 严禁发表危害国家安全、政治、黄色淫秽等内容的评论。
  • 用户需对自己在使用动易网络服务过程中的行为承担法律责任。
  • 本站管理员有权保留或删除评论内容。
  • 评论内容只代表机友个人观点,与本网站立场无关。
  •   友情链接   
    奇灵网络  千宠网  易百看中国影音互动娱乐
    版权所有:杭州奇灵科技有限公司  Copyright:2007(C) All right reserved  电话:+86-0571-85521923
    地址:浙江省杭州市美都广场C座  浙ICP备07002666号