Website simplified Switch JS encounter page card dead solution

Source: Internet
Author: User
Tags tagname

  recently developed a traditional version of the Web site, on the Internet to find a more popular simplified switch JS implementation, but later found that some pages will be stuck to death, in response to this problem, there is a good solution below

The company intends to enter the Taiwan market, recently developed a traditional version of the Web site, the database is all simplified information, in addition to fixed text on the page manual translation, the article content title is not traditional.     So on the internet to find a more popular simplified switch JS implementation, but later found that some pages will be stuck to death, simply can not carry on. Pop-up information indicates that this is the simplified switch JS caused the problem.     looked carefully and found out that this was the problem. Share, perhaps a lot of people have encountered similar problems.     first code:  code as follows://imitate the language package of the simple conversion function Plug-ins!     var default_isft = 0//default is traditional, 0-simplified, 1-traditional   var stranit_delay = 50/Translation delay millisecond (this is designed to allow the Web page to appear smoothly first)   &NBS P -code start, below------- //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 {returned simplized (TXT)} } //Convert object, using recursion, Layers to text   function stranbody (fobj)   {  if (typeof (fobj) = = "Object") {var obj=fobj.childnodes}  else   {  var tmptxt=stranlink_obj.innerhtml.tostring ()   if (Tmptxt.indexof ("Jane") <0)   {  bodyisft=1  Stranlink_obj.innerhtml=strantext (tmptxt,0,1)  Stranlink.title=strantext (stranlink.title,0,1)  }  else  {  bodyisft=0  StranLink_ Obj.innerhtml=strantext (tmptxt,1,1)  //stranlink.title=strantext (stranlink.title,1,1)  }  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.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 strike to do trip help tied pound slander to peel full bao Pao, abalone Jackal prepare exhausted the closing of the closed edge, the change of the debate braid turtle, Bin bin, and the port of the port of the cake, platinum and The silkworm residual Cang Cang toilet side book measurement layer astonished mixed cicada greedy slander the shovel production of a long time to pay the bowel factory Chang Chong Chong Chen lining Brace said correctional Cheng Crazy late chi shame teeth Blazing Chong Bug pet domain 踌 to raise silk ugly cupboard kitchen hoe virgin storage contact with sores Breaking the hammer and giving the wordsSpring onion chimneys from the bundle of mistakes up to the belt loan Tan Shan mend Christmas bomb when the opposition party stalls ramming the island to guide the theft of Light Deng enemy polyester recursive point cushion electric fishing and stacking of the top spindle of the East moving building frozen bucket calf read gambling plating forged Satin the team to the ton of blunt goose the amount of the false hunger er, the bait of the punishment valve------------------------------------------------ Jiangxi Gang just steel outline hillock Gao pick Pigeon Pavilion Chrome to the Shing Gong hook ditch construction buy enough cruel gu Guan Guan Hall used to pass the broad regulation of the turtle friend of the Ark of your executioner roll pot country over the terrible Han Hanyu crane he Wang Hung red after the pot to protect Hu Hu Hua painting is a bad Huan Huan ring also slow change call 痪 Huan Huan yellow lie wave to destroy bribe dirty will be braised in the meat of the collection of the goods of the machine, and the disaster hit a chicken, the order of a series of thistle---------order Jia Ka k price driving a difficult sealed cocoon detection of alkali and alkaline picking up Jiang reducing the threshold to practice cheap see key ship sword money gradually Splash Jiang Oar award for sauce and paste pouring with pride, twist hinge, richest foot, dumpling in the palm of the stalk of the straw, the Jing Jing Jing the old colt in the stable of the track and the horse saw the play of the Cuckoo, Juan Juan Jie Jie, the commandments of the tight Kam Jin only to Jin to make the best of the king of the King of the military June open Kai-shell class Ken dug to pull the stock of the executioner wide mining conditions deficient Kui peep feed To widen wax-Lan to the blue bar to stop the basket, the speak of the lazy cable and the fishing of the Lei Lei Lei, Li Lei li 厉励砾 Li Lai, Lian Lian, Lian-Lin, Lian-Liang and the ripple of the chain of the face chains love refining two treatment of the neighbour scales and the lease age Bell Linglingling collar distillation Liu Long deaf throat Cage ridge and long Long Lou Lou you Lu Lu Lou Ling Lu Lu She abducted the Bittern Ruthero LU She lu aluminum companion repeatedly worries filter Green Luan Twin Luan disorderly Lun Lun On the Luo luo logos gongs the Mule Luo the mother the horse yards to scold to buy the wheat to sell Mai to deceive the Eels to be quite full 谩 cat anchor riveting trade Mody not magnesium door stuffy the mystery of manganese dream to find Mian Burma temple out of the Min Ming absurd seek mu na be hungry and tired of the stuffed birds Nie nickel and lemon hunting ning twist muddy button new pus-rich malaria Connaught Ouchi fight Vomit retting plate Pang love pay jet peng cheat drift frequency poor apple by the evaluation of the spread of the spectrum of the umbilical cord qi to start the gas to abandon the pull lead to move Modest money clamp submarine shallow cut gun choke wall Qiang strong Rob Spade bridge Chowa to steal the light hydrogen dumping, please celebrate Joan Poor trend area on the right of the body drive caries and zygomatic power advised but Magpie let Rao around hot-thread rong Velvet soft sharp leap run sprinkle sa umbrella mourning sweep the astringent kills the gauze to bask in the light to burn the support to make the injury to treat, to examine the kidney infiltration sound rope to win the Holy Master Lion wet poetic corpse when the eclipse is the spirit of the book Redemption of the tree vertical number handsome double who tax shun Shuo Jia Silk feeding impressive Su Although the Sui-he-sun-damaged bamboo shoots shrink-lock Rex tart Lifting stand greed paralysis beach altar tan sigh soup hot tao make a copy of antimony body drawer bar sticking Iron Hall listen hydrocarbon copper head figure Coating Regiment decadent shed tuo tuo camel socks Bend Bay stubborn million network Wei Wei pseudo Wei Wei Wen the Wei false latitude to hear the grain stability asked urn I scroll vortex nest------------------------------------------sacrifice The Xianxian filling the Xian, xian-xiang details of the case, Xiao Pin Xiao selling the Scorpion association with the threat of harmonic writing Xie Xie Zinc Peacemaker hing because they rust embroidery must be Xu Yu continued Hin Xuan suspension of Tinea Xuan learn to find training hearing the weak pressure Jay duck dumb ya smoke salt strict Yan Yan dislike Yan Proverbs 鸯 Yang Yang itch nourishing like Yao Yao remote kiln ballad medicine master ye ye Yin medical iridium yi yi ant Art yi Yi The interpretation of the shade and silver drink Sakura Baby Eagle Ching Fluorescent Ying Fly Ying-yo-fu carbuncle Dance Yong-yong-yu-Chuan-yu-chuan-Fish and fishing entertainment and Yu-language urged the Imperial prison reputation in the Yuan Yuan shafts gardenYuan Yuan is willing to be a key Yue Yue Yue to read cloud Yunyang evenly Yun Yun Christie Dizzy rhyme miscellaneous disaster load Save temporary praise Dirty Chisel date the focus of the selection of ze thieves to the rolling of the trap brake fraud-------Zhao germanium this zhen needle to investigate the town to earn open 狰 frame Zheng Card Weaving professional paper to throw a flag of the end of the species swelling of the day and a sudden pig of the sword will be cast to build in the brick to earn pile zhuang makeup Strong-shaped cone pendant zhun turbid The Zhong of the total longitudinal 邹诅 Group is the Gimli remaining chain vent mark '; }  function ftpystr ()   {  return ' 皚 藹 翺 See W Dams strike to issue 絆 to help bind the pound 謗 the stripped of all the lifetime Bob 鋇 have 狽 tired pens after shot off awareness 辮 鼈 癟 endangered riverwalk Penn 擯 waffles flick 缽 Platinum connected carrot supplement 蠶 ashamed and sad brightening hatch barn 滄 toilet 詫 攙 摻 cicadas 饞 讒 dogfight spade makes field try to be in the same sausage factory trembling car completely dust Chen Chen money to punish town g lined late-fool worm Pet so 疇 躊 raising silk ugly cook closet She infrastructure 雛 Broke creative cylinders Pure Dolcevita resignation Word to the wise onion chimney from the bush compact the wrong to take a loan 竄 鄲 daring 撣 file 搗 Island Nongsa Пi Light Tang enemy 滌 締 the cushion to adjust the fishing overlay Mole 錠 building plated forgings ribbons confirmed team tons dull capture goose 訛 punishment bait 貳 to the valve of the "The trouble of a" and "C. 琺," "" "", "" "," "", "", "" "," "", "" "," the "trafficking, Lyon. Colorful 訃 bondage should tetrahydrate to 稈 贛 the castle, Car Longgang, 臯, Hao, stranded pigeons to loft the chrome, 龔 enough 蠱 to look after 剮 's habits consistent the turtle 閨 track Tricks deli precious 劊 輥 Roll pan country hackers 閡 Hubbard Huan after the red pot to protect 滬 rushing, and to change the call paralyzed Longoza the 渙 yellow lie bribery 穢 燴 conceal, 誨, 葷, 渾, accident, hunger, 譏, and the warrant of the chickens Economics remember the clip pods cheeks Steve Potassium price destroyers discipline 箋 Tough 緘 cocoon Check berberine alkaline chosen pick simple 儉 recommended threshold draw practices cheap, 餞 splash 澗 plasma 蔣 propeller prize sauce watering proud delicate stirring 鉸 矯 僥 foot 餃 paying the 絞 vehicles the more 稭 class penis the neck of the microscope 痙 the tangled 廄 the 駒 saw, Huan, and then the "silk", and "commandments," and "H," and "She plated", and then cautious, and all the Shan. Ashes Wide mines 曠 Situation thanks 巋 Glimpse feedback Breakdown extension wide wax to the blue fence intercept basketball 闌 Poland 瀾 讕 Browse 攬 Lazy Cables Labor 澇 Music beam softball tears fence She Grit calendars Asphalt slave Lian Lian Lian scythe poor ripples curtain 斂 facial necklace food, alchemy, 遼 鐐, Scales, 凜, 賃, Fanling, distillation Chris Lau, deaf throat 粔 艛 隴, Lou and 摟 簍 aloe Toulouse 顱 bailu, 擄, 鹵, Captive, bribe Paul Donkey and Lu 尀 磥 y stall wheel London rurunrun boundary 綸 and the prime of Gong 籮 騾 camel Are you buying a McDonald's 螞蟻 饅 is full of 謾 Cat road 鉚 not magnesium boring dream oleate mystery 覓 sponge Temple extinction Myanmar Mercy 閩 Resonance

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.