<li><a id="GB_BIG">繁體</a></li><li>
然后在本页写JS:
<script type="text/javascript" src="include/javascript/GB_BIG.js"></script>
<script type="text/javascript">
var defaultEncoding = 2; // 1: 繁體中文, 2: 简体中文
var translateDelay = 0;
var cookieDomain = "http://www.gdwd.net"; ///修改成你的网站地址
var msgToTraditionalChinese = "繁體";
var msgToSimplifiedChinese = "简体";
var translateButtonId = "GB_BIG";
translateInitilization();
</Script>
然后导入GB_BIG.js文件:
请下载压缩包,经检测firefox 遨游 ie都可正常切换
最新评论