最近看到有個簡體--繁體字互相轉換的程式,是用js實現的,感覺很好玩,所以拿來研究研究。先看看介面如下:
漢字簡體繁體轉換
上面的所有**如下:
<script
>
function
copy(ob)
}function
paste(ob)
}function
cut(ob)
}function
findobj(n, d)
if(!(x
=d[n])
&&d.all) x
=d.all[n];
for(i=0
;!x&&
i<
d.forms.length;i
++) x
=d.forms[i][n];
for(i=0
;!x&&
d.layers&&i
<
d.layers.length;i
++) x
=findobj(n,d.layers[i].document);
if(!x
&&document.getelementbyid) x
=document.getelementbyid(n);
returnx;}
function
simppystr()
function
ftpystr()
function
qqpystr()
function
traditionalized(cc)
return
str;
}function
simplized(cc)
return
str;
}function
qqlized(cc)
return
str;
}function
convert(noption)
script
>
<
table
bordercolor
="#6699cc"
cellspacing
="0"
cellpadding
="2"
width
="700"
align
="center"
border
="1"
>
<
tbody
>
<
tr>
<
td valign
="top"
width
="99%"
bgcolor
="#6699cc"
>
<
p align
="center"
><
font
color
="#ffffff"
><
strong
>漢字簡體繁體轉換
strong
>
font
>
p>
td>
tr>
<
tr>
<
td valign
="top"
width
="99%"
height
="15"
>
<
div
align
="center"
>
<
center
><
br>
<
input
onclick
="paste('txt')"
type
="button"
value
="粘 貼"
>
<
input
onclick
="convert(0)"
type
="button"
value
="轉化為簡體"
>
<
input
onclick
="convert(1)"
type
="button"
value
="轉化為繁體"
>
<
input
onclick
="convert(2)"
type
="button"
value
="轉化為qq繁體"
>
<
input
onclick
="copy('txt')"
type
="button"
value
="復 制"
>
<
input
onclick
="cut('txt')"
type
="button"
value
="剪 切"
>
<
input
onclick
="txt.value='';txt.focus();"
type
="button"
value
="清 空"
>
<
br><
br>
<
textarea
id="txt"
rows
="15"
cols
="80"
value
="">
textarea
>
<
br><
br>
center
>
div>
td>
tr>
tbody
>
table
>
出處:
簡體轉換繁體
vb.net strconv 函式介紹 public shared function strconv byval str as string,byval conversion as microsoft.visualbasic.vbstrconv,optional byval localeid as ...
C 簡體繁體轉換
簡體轉繁體 轉換內容 繁體 public static string convertbig5 string convertext 繁體轉簡體 轉換內容 簡體 public static string convertgb2312 string convertext 將繁體亂碼轉繁體 已經是big5編碼...
簡體繁體字轉換。
using system using system.collections.generic using system.componentmodel using system.data using system.drawing using system.linq using system.text u...