This article is mainly on the simplified Chinese conversion of Traditional Chinese implementation code is introduced, the need for friends can come to the reference, I hope to help you.
The code is as follows: var default_isft = 0 //default is traditional, 0-simplified, 1-traditional var stranit_delay = 50//Translation delay millisecond (set this The goal is to let the Web page appear smoothly first) //-------code start, the following do not change-- //Convert text function strantext (txt , Toft,chgtxt) { if (txt== "" | | Txt==null) return "" Toft=toft==null? Bodyisft:toft if (chgtxt) txt=txt.replace (Toft?) Jane ":" (Toft?) Fan ":" Jane ")) if (Toft) {return traditionalized (TXT)} else {return simplized (TXT)} &nbs P //Convert objects, using recursion, layer by step to text function Stranbody (fobj) { if (typeof (fobj) = = "Object" {var obj=fobj.childnodes} else { var t Mptxt=gb2big5_obj.innerhtml.tostring () if (Tmptxt.indexof ("Jane") <0) & nbsp { BODYISFT=1 Gb2big5_obj.innerhtml=strantext (tmptxt,0,1) &NBS P Gb2big5.title=strantext (gb2big5.title,0,1) } Else { bodyisft=0 Gb2big5_obj.innerhtml=strantext (tmptxt,1,1) Gb2big5.title=strantext (gb2big5.title,1,1) } Setcookie (jf_cn,bodyisft,7) var obj=document.body.childnodes &nbs P } for (var i=0;i<obj.length;i++) { var oo=o Bj.item (i) if ("| | br|hr| Textarea| ". IndexOf ("|") +oo.tagname+ "|") >0| | Oo==gb2big5_obj) continue; &NBSP; 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.type!= "hidden") oo.value=strantext (Oo.value); if (oo.nodetype==3) {Oo.data=strantext (Oo.data)} Else Stranbody (OO) } } function Jtpystr () { return ' ai io Hinder love ao ao dam defeat The trip to get a pound to slander the Pao bao, the abalone jackal prepared exhausted stretched pen finish close the edge of the paper to change the debate braid turtle flat the greedy and the shovel produces the chatter field to taste long the bowel of the factory Chang-Chong Chong-Chen lining to support to say that the correctional Cheng Che-chi, the shame of the teeth blazing bug pet domain 踌 to raise silk ugly cupboard kitchen hoe virgin storage contact with sores to enter the hammer pure words give Cong chimneys From the bundle of mistakes to the Tan of the mend and the Christmas bomb when the opposition party swing the island, guide the theft of Light Deng enemy polyester recursive point pad electric Lake fishing and stacking of the top spindles set East moving building frozen bucket calf alone read gambling plating forged the satin team to ton of blunt goose amount, and the bait, the lure, the baits, the food, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the Rigid steel gang Gao Pick Pigeon Pavilion Chrome to Shing tribute hook Ditch construction buy enough cruel gu Guan Guan Hall of the familiar with the broad regulation of the GUI-GUI, executioner roll pot country over the terrible Han Hanyu Crane He Wang Red after the pot to protect Hu Hua paintings a bad Huan Huan ring also slow change call 痪 Huan Huan yellow lie wave to destroy bribe dirty will be braised in the sauce of the meat of the mess to get the goods, the machine is hungry, the chicken, the order of the harvest, the series of Thistle-ji, and the Ji-Jia Ka Price driving a difficult sealed cocoon checking alkali and alkaline picking up Jiang reducing recommendation threshold to practice cheap see key ship sword money gradually splash the pulp Jiang Oar award talk sauce Glue pouring pride jiaoHinge-straightening richest foot dumpling----------------------------------------------------------------ken-ku-ku----------------------------------------------------------------- A sickle of pity, a chain of eyes, a necklace, a grain of food, a cool two, a cure for the fire in the north, the lease, the Linglingling, the Liu Long deaf throat Cage Ridge The green and the twin, the Robin, the LUN, the wheel, the mule, the mother, the horse, the horses, and the wheat, the Eels, the 谩, the cat anchor, the rivet. Temple out of the Min Ming absurd seek mu na na difficult to tickle the brain annoyed and tired of kicking the stuffed birds Nie nickel and lemon hunting ning twist muddy button new pus, strong agricultural malaria Connaught Ouchi fight vomit, Pang love to pay jet peng cheat drift frequency poor apple by the evaluation splashed quite spread the spectrum umbilical Qi ride not to open the gas to abandon pull the lead to move to sign the hand of a shallow cut gun choke wall Qiang strong Rob Spade bridge Chowa to steal the light hydrogen dumping, please Qing June in the impoverished area of the body drive caries and zygomatic right advised but Magpie let Rao around Jes thread Velvet Soft sharp leap run sprinkle the gills of the umbrella of the spread of the broom, sweep and wipe the screen sun-shine Shan support damage reward burning Shaoxing credit to the gentleman to examine the sound of the kidney infiltration line Sheng Shi Lions wet poetic corpse when the erosion of the life the key to book redemption is the tree vertical number handsome double who the tax shun said Shuo impressive Su although Sui-sun loss of bamboo shoot contraction lock rex Tart raise the beach tan Tan to talk about a sigh soup hot tao Sash, antimony title Drawer paste Iron Hall--------------------------------------------------------------------the fine shrimp in the milling scene, Xia Xia xia shovel fresh fiber Xian Xian Yin Title Leisure show danger now Xianxian filling Xian Xian line set Township detailed sound xiao Pin Xiao-Feng Scorpion association with the threat of harmonic writing Xie Xie Zinc Peacemaker hing because they rust embroidered Xu Xuan must be Xu Yu to continue to select Tinea The Xuan learns the training to seek the trainer to hear the weak pressure Raven duck Mute Asia to be surprised the smoke salt strict Yan Yan to be disgusted with the Yan Proverbs to 鸯 the Yang Yang to itch to raise the kind Yao to be cured the Yao Yao remote kiln ballad medicine ye leaf industry leaves the medical Iridium Yi yi the ant art Yi Yi to make a shadow Yin Yin Ying Ying Baby eagle Ching Fluorescent fly yo fu carbuncle Dance Yong Yong Yu-chuan-Yu-yi-Chuan-yi-yi-Chuan-yi-yi-Chuan-yi-Chuan Yu-language to the prison reputation in advance of the yuan shafts Park members are willing to Yue Yue Yue Cloud Yunyang Evenly clouds Yun Yun Christie halo rhyme Miscellaneous Disaster load save temporarily praise dirty cut jujube focus on the focus of the case of the thief gift to tie the rolling and the trap of the bond of the debt felt to cut the stack battle into the expansion of the account swelling Zhao trace germanium This zhen needle investigation and diagnosis of the town to make a frame Zheng Certificate Weaving Professional paper and the end of the species swelling of the whole of the drum, the day of the sudden pig, and the sword to be stored cast build in the brick to make a pile Zhuang makeup strong cone pendant zhun turbidite total longitudinal 邹诅 group Drilling Clock What is the only fierce to open the board Gimli remaining chain vent '; } function Ftpystr () { return ' 皚 藹 love 翺 See W Dams strike defeat issue 絆 help to bind the pound 謗 stripped Bob 鋇 狽 and tired tightness the shot awareness to 辮 鼈 and to debate 癟 and endangered riverwalk 缽 Platinum connected Carrot Supplement 蠶 the ashamed to sad the brightening hatch flies barn the flankRegistered layer 詫 攙 摻 cicadas 饞 讒 dogfight spade makes field try to compensate for the sausage factory trembling car completely dust, money, called Punishment Town G fool late-so 疇 躊 raising silk ugly closet cook She 雛 infrastructure piles broke creative cylinders resignation words to the smart onion chimney from the bush compact 竄 wrong to take 鄲 撣 bold 憚 to the opponents of 搗 Island Nongsa Пi Light Tang enemy 滌 to 締 point cushion the fishing to adjust the mole overlap the top 錠 Subscribe building 犢 Plated forgings ribbons confirmed team tons dull to capture goose 訛 the bait to punish 貳 to valve the 琺. Lyon flight colorful graves dung maple the Fung of the wind, ironic the skin Phoenix Radiation and the other were. 訃 稈 贛 Car longgang 臯 Hao stranded pigeons The loft chrome the 龔 鞏 to hook the library's habits 蠱 the extensive silicon 剮 consistent track turtle 閨 precious Tricks Deli Roll 劊 country 輥 Hans Pan hackers 閡 the horizontal bombing of 鶴 After the red pot to protect the 滬 rushing, and also to slow down the paralyzed Longoza 渙 yellow lie to destroy bribery 穢 conceal 誨 painting 葷 渾 partner accident Attack Hunger 譏 chicken grades warrant the editor of the 薊. A clip pods cheeks Steve Potassium price destroyers the 箋 緘 to cocoon the berberine alkaline The chosen see the "a." The simple pick 儉 threshold The draw practices the cheap, the 餞 of the Splash, the 澗, plasma, to be the same. Penis is surprised to neck the 痙 of the tangled 廄 the 駒 saw, Huan of the ' The, "Shan Ashes juice Negundo The tips 鈞 the 駿 Shell to open the settlements course chickens copied the pants boast snobbish wide mines situation 曠 巋 Glimpse feedback Breakdown extension wide wax and intercept basketball and 闌 瀾 讕 攬 The lazy the tears cables the abused 撈 澇 the softball of the Lotus Lian Lian fence poor She grit calendars facial link Asphalt training Scythe Cool two forgive 遼 鐐 to scales 凜 賃 age Fanling distillation Chris Lau Deaf throat 粔 艛 隴 Lou 摟 簍 Aloe Toulouse 顱 bailu 擄 Prussian 鹵 captive the bribe Paul the the donkey the stall wheel London rurunrun boundary 綸 theory of Prime Robert Gong 籮 騾 camel 螞蟻 scoid? Buy a microphone hiding 饅 the 謾 Cat road 鉚 The magnesium not boring a dream oleate a mystery 覓 sponge temple extinction Myanmar The mercy 閩 the resonance