<script type ="text/javascript" >//<![CDATA[ var flag = false; function Notify() { flag = true; } function thisMovie(movieName) { if (navigator.appName.indexOf("Microsoft") != -1) return window[movieName]; return document[movieName]; } function pinYin(txt) { if (!flag) { alert("你的 flash 版本太低!"); return; } alert(thisMovie("py").getSpell(txt)); } function urlencode(txt) { if (!flag) { alert("你的 flash 版本太低!"); return; } alert(thisMovie("py").UrlEncode(txt)); } //]]></script > <!-- 自行下载 chinese.swf chinese.fla --> <object id ="py" classid ="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase ="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width ="0" height ="0" > <param name ="allowScriptAccess" value ="sameDomain" / > <param name ="movie" value ="chinese.swf" / > <embed name ="py" src ="chinese.swf" width ="0" height ="0" allowScriptAccess ="sameDomain" type ="application/x-shockwave-flash" pluginspage ="http://www.macromedia.com/go/getflashplayer" / > </object > <textarea id ='txt' >输入文字</textarea > <input type ="button" onclick ="pinYin(txt.value)" value =" pinYin " > <input type ="button" onclick ="urlencode(txt.value)" value =" urlencode " >
UTF-8 转GBK
最新推荐文章于 2025-04-08 23:30:36 发布
1315

被折叠的 条评论
为什么被折叠?



