人人做人人澡人人爽欧美,国产主播一区二区,久久久精品五月天,羞羞视频在线观看免费

當前位置:蘿卜系統下載站 > 技術開發教程 > 詳細頁面

全角英文轉為半角

全角英文轉為半角

更新時間:2022-08-01 文章作者:未知 信息來源:網絡 閱讀次數:


<html>
<head>
<title>將全角轉為半角,半角轉為全角</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body bgcolor="#FFFFFF">

<%
'---------------------------------------
'編寫:johnsun Email:zjs@dagongbao.com
'語言:ASP+VBScript 轉摘請保留版權說明
'direction:"1"大寫轉小寫;"-1"小寫轉大寫
'---------------------------------------

dim contentA,contentB
contentA=request.form("contentA")
if contentA<>"" then
    CALL contentstr(contentA,"1")
end if
contentB=request.form("contentB")
if contentB<>"" then
    CALL contentstr(contentB,"-1")
end if

function contentstr(content,direction)
    dim strbig,tstrbig,strsma,tstrsma
    strbig="ABCDEFGHIJKLMNOPQRSTUVWXYZ'"
    tstrbig="ABCDEFGHIJKLMNOPQRSTUVWXYZ'"
    strsma="abcdefghijklmnopqrstuvwxyz"
    tstrsma="abcdefghijklmnopqrstuvwxyz"
    dim b(26),tb(26),s(25),ts(25)
    for i=1 to 26
        b(i-1)=mid(strbig,i,1)
        tb(i-1)=mid(tstrbig,i,1)
    if direction="1" then
        content=replace(content,b(i-1),tb(i-1))
    elseif direction="-1" then
        content=replace(content,tb(i-1),b(i-1))
    end if
        s(i-1)=mid(strsma,i,1)
        ts(i-1)=mid(tstrsma,i,1)
    if direction="1" then
        content=replace(content,s(i-1),ts(i-1))
    elseif direction="-1" then
        content=replace(content,ts(i-1),s(i-1))
    end if
    next
'-------------------------------------------
content=replace(content,chr(13)&chr(10),"<br>")
    if direction="1" then
        content=replace(content,""," ")
    else
        content=replace(content," ","")
    end if
'-------------------------------------------
    contentstr=content
    if direction="1" then
        response.write "大寫轉小寫:<br>"
    else
        response.write "小寫轉大寫:<br>"
    end if
    response.write contentstr & "<BR>"
end function
%>
<form action='d.asp' method="post">
大寫轉小寫:
  <textarea name="contentA" rows="8" cols="30">
A lady said to her friend that the sun is the most beautiful and useful body。
A gentlman answered:“Yes,Madam,the sun is a very fine body,but in my opinion,it is not so useful as the moom.”
“Why?”asked the lady.
“Because,”replied the gentleman,“the moon affords us light in the might-time,when we really want it,whereas we have the sun always with us in the day-time,when we have not so much meed of it.”</textarea>
  <br>
  小寫轉大寫:
  <textarea name="contentB" rows="8" cols="30">
Arctic Explorer Boy:Dad,when I grow up I want to be an Arctic Explorer.
Father:That's fine,Bill.
Boy:But I want to go into training at once.
Father:And so﹖
Boy:Well,I want a dollar a day for ice-cream so I'll get used to the cold.
</textarea>
  <br>
  <input type="submit" name="Submit" value="Submit">
</form>
</body>
</html> 

溫馨提示:喜歡本站的話,請收藏一下本站!

本類教程下載

系統下載排行

網站地圖xml | 網站地圖html
主站蜘蛛池模板: 红河县| 张掖市| 茶陵县| 镇巴县| 桐柏县| 梁山县| 南汇区| 丰镇市| 山阳县| 三河市| 梨树县| 梁平县| 比如县| 长丰县| 天水市| 高淳县| 阜阳市| 上林县| 沂水县| 永仁县| 绍兴县| 漾濞| 武城县| 彭山县| 河池市| 海口市| 白朗县| 综艺| 莆田市| 锦州市| 兴安盟| 克山县| 建阳市| 镇坪县| 将乐县| 宜君县| 抚远县| 海南省| 安泽县| 乌兰县| 揭东县|