ShuDudu's Home was started in 2011, but the web data is lost, so now begin again, I would like to make some friends, I hope you like ShuDudu's home.
Current position: ShuDudu > Life >

[JS]Easily convert the site from simple to traditional

Sunday on August 28th, 2005Life

A very simple method, you can easily convert a web page by adding a few lines of code to the page.

first download the js file transform.js for conversion between simple and complex, copy it to the website directory, then use the web page creation tool to open the web page that needs to be converted between simple and complex, and add the following code to the code:

 & lt;script type= "text/javascript" language= "javascript" src= "https://www.chener.net/archives/77/transform.js" & gt; 

then add the simple and complex conversion link in the appropriate place on the web page:

 & lt;a href= "" & gt; traditional Chinese & lt;/a> & lt;a href= "" & gt; simplified Chinese & lt;/a>

after saving the page, click the "traditional Chinese" link, the page will become traditional, click "simplified Chinese" will be automatically converted to simplified form, convenient for different users to choose to browse.
Tip: this method is not only suitable for static websites, but also can be used in forums, message boards and other dynamic website systems.
--
from: Knowsky

Copyright Protection: ShuDudu from the original article, reproduced Please keep the link: https://www.shududu.com/life/JS-Easily-convert-the-site-from-simple-to-traditional.htm