Simplified word Conversion

Source: Internet
Author: User

Copy codeThe Code is as follows:

Var Default_isFT = 0 // whether the default is traditional, 0-simplified, 1-traditional
Var StranIt_Delay = 50 // translation delay in milliseconds (this is designed to make the webpage appear smoothly first)

// ------- The code starts. Do not change the following -------
// Convert text
Function StranText (txt)
{
If (txt = "" | txt = null) return ""
If (BodyIsFt = 1) {return Traditionalized (txt )}
Else {return Simplized (txt )}
}
// Convert the object and use recursion to strip the object to the text layer by layer.
Function StranBody (fobj)
{
If (typeof (fobj) = "object") {var obj = fobj. childNodes}
Else
{
BodyIsFt = StranLink_Obj.innerText = "simplified version "?
StranLink_Obj.innerText = BodyIsFt = 1? "Simplified version": "traditional version"
SetCookie (JF_cn, BodyIsFt, 7)
Var obj = document. body. childNodes
}
For (var I = 0; I <obj. length; I ++)
{
Var OO = obj. item (I)
If ("| BR | HR | TEXTAREA |". indexOf ("|" + OO. tagName + "|")> 0 | OO = StranLink_Obj) continue;
If (OO. title! = "" & OO. title! = Null) OO. title = StranText (OO. title );
If (OO. alt! = "" & OO. alt! = Null) OO. alt = StranText (OO. alt );
If (OO. tagName = "INPUT" & OO. value! = "" & OO. type! = "Text") OO. value = StranText (OO. value );
If (OO. nodeType = 3) {OO. data = StranText (OO. data )}
Else StranBody (OO)
}
}
Function JTPYStr ()
{
Return 'Ten thousand and ugly professional Cong Dong Si lost two Yan Feng Lin Li Ju Yiwu leqiao Xi Xiang book purchase chaos in the loss of cloud yi ya production Mu Qin Yi hundreds of millions of yuan only from Lun cangyi's high-price crowd will attack the umbrella and Wei Chuan, and Lun Peng's pseudo-queue, Yu Mao, Xia, and Yao, an overseas hacker at the investigation side. compensation for the loss of blood and storage of children against the party LAN guanxingz animal maintenance in the gang book write junnong Zun Feng chongzheng frozen net miserable Ling cut together a few Phoenix on the basis of the Kairi Cutting liu zhengchuang deleted some others, and he tried to take advantage of the yundun program. He urged the Office to work hard and work hard. Yun, Yun, and Yu district Medical Association, China, sold Lu halu, Wei, but he did not know how to use the yundun program. the Office is full of pressure and annoying. The comment on the comment. why? when you yell at them, they yell at them and yell at them. When the Spring Festival is around, the national circle, the holy field, and the blocks are broken, and the dam and dock graves are falling to the ridge. the strong sound of the shell pot in the upper part of the pot is ready enough to boast a clip to win the beautiful Fen award. yu Ying Yu Ma sun xuexiao Ning bao shi pet audit Xian Gong Kuan bin sleeping to guide the life of the erchen Yao dead layer for the latest he is a veteran of Yeo yuyu, who lives in Yeo Township, landao Ling, Yue Yu, and Tongyu tongxia. with a frame to help the powerful and wide village qinglu library should be temple Pang waste when opening different abandon Zhang mi bending bullet strong when the recording Yan che Jing Yu Yi i'm worried about the state of my mind. I'm sorry for the total amount of pity. we are willing to make sure that you are not busy. i'm a hacker, a hacker, and a hacker. I am eager to keep up with the enemy, collect the enemy, collect the data, and break the data without the old time. When the sun is shining, Xiao Xiaohui is dizzy. yan Jie's pole structure refers to the zhuanzao zhuanqi gun, fengxiao cabinet, zhuanqi, zhuqiao, zhuanqi, zhuanqi, and zhuanqi. pilimeng Yao Ying published cupboard Yao Huan ou yi the broken hub is full of dead felt, gas, hydrogen, argon, and foreign sewage soup. There are no troughs in the troughs. qingting Shomu yomu yundun infiltration of warm swim Bay wet burst and splash; rolling and delayed rolling; full of dirty water filters abuse of luhe beach, yellow, and so on stew Wei Yi points refining yi rotten hydrocarbon candle smoke annoying burn ye stew hot ash hot Huan HUan yi ye only a small lion was caught in a prison, and I was caught in a hunting system. The pigs and cats were offering otters, and Ma weihuan was in the environment. electric painting Chang Xiao domain therapy malaria selection sore mad blister Yellow salt monitoring and anti-theft plate wide blind eye vision Jiao Ji bauxite serial code brick Yan Shan Li Ji Si Shuo Yan really can not affect the production of alkali thank you for your prayers. zhuzhu sifted zizheng raised and signed a simplified pair of zookeeper and zookeeper baskets and barrier Taipa Indica Rice glutinous rice and Guangdong manure grain about the grade of the yarn Yarn after being tied to the velvet knot, the ghost will be painted around the ghost, and the ghost will be twisted, and the silk will be embroidered. stretch silk attackers are always confused and confused. secondary School Cong su intestinal skin kidney swelling and threat gallbladder shengyu Ti titanium gum pulse dirty umbilical brain pus and feet detachment of the face wax-cured ankle greasy sputum yu Ship Cabin Yan Yi festival Wu Lu Yi yi Si Cang su Yun Ping Jing Xiao Wei Xi Rong ling Ying lu Ying Xiao Sa leeching Ling Yu yundun xiao Yu I have been jealous of others, and I have been involved in the evaluation. I have already subscribed to the evaluation. I have been talking about the news about the discussion. set up access tips, evidence, assessment, identification, fraud, litigation, diagnostic, and translation, clinical trial, clinical trial, and clinical trial for more information, please refer to the following statements to encourage you to listen. Please refer to these statements. the hacker's homophony refers to the hacker's riddle, the hacker's hacker bei Zhen is responsible for the loss of the financial responsibilities of the sages, the goods quality of the seller, the poor, the purchase of the store, the price of your loan and trade fee He Yi, the thief Jia, the bribe capital token redemption token practice of rolling Rolling light Shi's sedan chair was often used to assist the generation of vehicles, roll rim, production, production, transmission, and management. in addition, this is a far-reaching violation. Even if you are late, you can select the xundi Branch, which leaves the remote Deng Xiaoyu post and paste it in the adjacent Yu Xiaoyu, Zheng weiyu, and Xiaoyu sauce. li xiaojian Xiaoyan tungsten and tungsten tunnel Tunnel cobalt zookeeper copper, aluminum, indium, silver, silver, blue, red, red, gold, chromium, enamel, cylinder, shovel, ammonium, blue, and blue, louddb, and chains, pin, lock, lithium zookeeper pot zirconium, oscular, rust files, zinc, zinc, scaling, acute antimony oxide, hazelnut, hazelnut, malformed, malformed, anchor, anchor, hazelnut, ingot, key saw manganese zookeeper forging zookeeper magnesium plating zookeeper cadmium tweezers engraved nickel zookeeper pound zookeeper boring zookeeper. zookeeper zookeeper certificates throttling, hearing, checking, and checking jie Ji Lu Yu Chen Yu Shaanxi Yi Yu insurance with hidden Li Yu difficult young Xiao Wu Yan Jing Yu Wei Ren Yi Han Yu Tao Yun page top xiang shun must be stubborn Gu Dun Yan Song Xian pre-skull collar quite neck and cheek Si jaw and Chin Yi frequency Yao Xiao Ying question Yao Chin Yan forehead temporal lobe the system is full of food. bait ravelu wonton bread wonton when the horse is running, the horse is running in the camel, and the horse is riding the horse, the horse is riding the horse, and the horse is being cheated. zookeeper zookeeper hip catfish zookeeper inspecies two species of catfish (catfish) when the rooster is singing, the crow's horse is running and the duck is running. zookeeper zookeeper the system of the Turtles of the Dragon's nest in the upper part of the population of the upper part of the population. fan song in the system did not try the noise and won't be idle ';
}
Function FTPYStr ()
{
Return 'copyright and Industry Leading Industries two major reasons why does it make sense? Please refer to the legal provisions of Alibaba Cloud's legal disclaimer? The legal provisions of this legal disclaimer refer to the legal provisions of the Asian market. our marketing team members have been using Alibaba Cloud Technical Support Team to provide technical support. please refer to the following link for more information: please refer to the following documents for more information: in our region, our region has been released. after reading this article, why does it happen? I have been hearing this article because our staff have been reading this article. alibaba Cloud has been making huge numbers of orders, and has been making huge numbers of orders. when the market is closed, there will be huge numbers of users in the near future. he was the first speaker of this article. in practice, we recommend that you handle the issues during which the website will be released soon. please refer to the following link for more information: please refer to the following link for more information: they have been used in the battle. please refer to the following link for more information: please refer to the following table for more information: when there is no timeout, please renew your ICP filing system when necessary. Please refer to the following link for copyright verification. please refer to the following link for more information: please refer to the following link for more information: there are still some problems in the gas market, such as the number of healthy users in the market has been reduced, and the number of healthy users has been reduced. please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: zookeeper has been written into zookeeper, Zookeeper, and zookeeper. please refer to the following link for more information: after reading this article, I wrote some suggestions to some technical experts who have been using Alibaba Cloud products. Some technical experts have been using Alibaba Cloud products. please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: please refer to the following documents for more information: I think there will be a number of large numbers of small numbers of numbers. in this case, the website administrator's website please refer to the following statement for more information: please refer to the following link for more information: please refer to the following link for more information: alibaba Cloud's website has been released. please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: he has made great strides during his/her attempts to improve his/her ability to pay for his/her money. please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: please check whether there are too many problems during this period. Please try again later. Please try again later. please refer to the following link for more information: please refer to the following link for more information: there are two major issues in this field: Why? please refer to the following link for more information: there are already many problems in the market. please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: there are too many other problems in the process. There are too many problems in the process ';
}
Function Traditionalized (cc ){
Var str = '', ss = JTPYStr (), tt = FTPYStr ();
For (var I = 0; I <cc. length; I ++)
{
If (cc. charCodeAt (I)> 10000 & ss. indexOf (cc. charAt (I ))! =-1) str + = tt. charAt (ss. indexOf (cc. charAt (I )));
Else str + = cc. charAt (I );
}
Return str;
}
Function Simplized (cc ){
Var str = '', ss = JTPYStr (), tt = FTPYStr ();
For (var I = 0; I <cc. length; I ++)
{
If (cc. charCodeAt (I)> 10000 & tt. indexOf (cc. charAt (I ))! =-1) str + = ss. charAt (tt. indexOf (cc. charAt (I )));
Else str + = cc. charAt (I );
}
Return str;
}
Function setCookie (name, value) // set JS for cookies
{
Var argv = setCookie. arguments;
Var argc = setCookie. arguments. length;
Var expires = (argc> 2 )? Argv [2]: null;
If (expires! = Null)
{
Var LargeExpDate = new Date ();
LargeExpDate. setTime (LargeExpDate. getTime () + (expires * 1000*3600*24 ));
}
Document. cookie = name + "=" + escape (value) + (expires = null )? "": ("; Expires =" + LargeExpDate. toGMTString ()));
}

Function getCookie (Name) // cookies read JS
{
Var search = Name + "="
If (document. cookie. length> 0)
{
Offset = document. cookie. indexOf (search)
If (offset! =-1)
{
Offset + = search. length
End = document. cookie. indexOf (";", offset)
If (end =-1) end = document. cookie. length
Return unescape (document. cookie. substring (offset, end ))
}
Else return ""
}
}
Var StranLink_Obj = document. anchors ("StranLink ")
If (StranLink_Obj)
{
Var JF_cn = "ft" + self. location. hostname. toString (). replace (/\./g ,"")
Var BodyIsFt = getCookie (JF_cn)
If (BodyIsFt! = "1") BodyIsFt = Default_isFT
StranLink_Obj.href = "javascript: StranBody ()"
If (BodyIsFt = "1") setTimeout ("StranBody ()", StranIt_Delay)
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.