js实现简繁体火星文互转工具
html代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="shortcut icon" href="favicon.ico">
<title>简繁体互转工具</title>
<link rel="stylesheet" type="text/css" href="css/a1.css">
<link rel="stylesheet" href="css/a2.css" type="text/css">
<script src="js/b1.js" type="text/javascript"></script>
<script src="js/b2.js" charset="gb2312" type="text/javascript"></script>
</head>
<body>
<div class="wrapper">
<div class="wwlr auto">
<form autocomplete="off">
<!--GuoLvWrap-begin-->
<div class="clearfix">
<div class="pr JsTxtW-r fl">
<h1 style="text-align: center;">内容输入区</h1>
<textarea id="txt" name="textarea" class="JsTxtCo bor-a1s h200 WrapHid wwlr-l"></textarea>
<b class="search-hint CentHid" style="display: block;"></b>
</div>
<div class="pr JsTxtW-r ml20 fl">
<h1 style="text-align: center;">结果输出区</h1>
<textarea id="result" name="result" class="JsTxtCo bor-a1s h200 WrapHid wwlr-l"></textarea>
<b class="search-hint CentHid"></b>
</div>
</div>
<div class="GuoLvWrapCenter pt10 clearfix">
<div class="GuoLvCbtn"><input type="button" value="转化为简体" class="GLOkBtn" name="tosim"><input type="button" value="转化为繁体" class="GLOkBtn" name="totra"><input type="button" value="转化为火星文" class="GLOkBtn" name="toother"><input type="button" value="清空结果" class="bg-blue02" name="clear">
</div>
</div>
</form>
</div>
</div>
<script>
tc.gbbig();
</script>
</body>
</html>

css和js代码繁体字库有点大,需要的朋友可以前往百度云盘下载项目文件:
https://pan.baidu.com/s/1l6-IUaymfLn1MlnCkUDT9Q
提取码:neph


浙公网安备 33010602011771号