var Default_isFT = 0 //預設是否為繁體,0-簡體,1-繁體
var StranIt_Delay = 50 //翻譯延遲毫秒(設這個的目的是讓網頁先流暢的顯現)
//-------程式碼開始,下列別改-------
//轉換文字
function StranText(txt,toFT,chgTxt)
{
if(txt==""||txt==null)return ""
toFT=toFT==null?BodyIsFt:toFT
if(chgTxx)? "簡":"繁"),(toFT?"繁":"簡"))
if(toFT){return Traditionalized(txt)}
else {return Simplized(txt)} }
//轉換對象,使用遞歸,逐層剝到文字
function StranBody(fobj)
{
if(typeof(fobj)=="object"){var objchildfobj. }
else
{
var tmptxt=gb2big
{
BodyIsFt=1
gb2big5_Obj.innerHTML=StranText(tmptxt,0,1)
}
else
{
> gb2big5_Obj.innerHTML=StranText(tmptxt,1,1)
}
setCookie(JF_cn,BodyIsFt,7)
var obj =document.body.childNodes
}
for(var i=0;i { if(" ||BR|HR|TEXTAREA|".indexOf("|" OO.tagName "|")>0||OO==gb2big5_Obj)continue;
if(OO.title!=""&&OO.title!= null)OO.title=StranText(OO.title);
if(OO.alt!=""&OO.alt!=null)OO.alt=StranText(OO.alt); . 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 '皚藹礙愛翱襖奧壩罷擺敗頒布絆幫綁鎊剝飽寶報鮑輩貝鋇狽備閉邊編貶變辯辮鱔廁側冊測層詔攙摻蟬饞諂纏鏟產闡述顫場嚐長償腸廠暢鈔車徹塵陳襯撐稱懲誠驍痴遲馳恥齒熾沖蟲寵疇躊籌綢醜櫥廚鋤雛田儲觸處傳瘡闖創錘純綽辭詞賜聰蔥煙囪從叢湊竄錯達帶貸擔單鄲撣膽憚爆彈當擋黨蕩檔搗島禱導盜燈鄧敵滌遞締點墊電淀釣調迭諜疊釘頂錠訂東動棟凍鬥犢獨讀賭鍍鍛斷緞兌隊對噸頓鈍奪鵝額訛惡餓兒爾餌貳發罰閥琺礬釩釩煩範販飯訪紡飛廢費紛墳奮憤糞豐楓鋒風瘋馮縫諷鳳膚輻撫輔賦復負訃婦縛此鈣蓋幹趕稈贛岡剛鋼綱崗皋鎬擱鴿閣鉻個給龔宮鞏貢鉤溝構購夠蠱顧剮關觀館慣貫廣規矽歸龜閨軌詭櫃貴劊輥滾鍋國過駭韓漢閂鷯賀橫轟鴻紅後壺護滬戶嘩華畫劃話懷壞歡環還緩換喚癱瘓煥渙黃謊揮輝毀賄穢會燴概括軄繪葷渾夥獲貨禍擊機積飢謔雞績緝極輯級擠幾薊劑濟計記際繼紀夾莢頰賈鉀價駕殲監堅纈間艱緘繭檢鹼鹼揀撿簡儉減薦門檻鑑踐賤見鍵艦劍餞漸濺澗漿蔣槳獎講醬膠澆驕嬌攪鉸矯僥腳餃繳絞轎較秸階節莖驚經頸靜音徑痙競淨糾厩舊駒舉據鋸懼劇鵑絹傑潔結誡屆緊錦僅謹進晉燼盡勁荊覺決訣絕鈞軍驧開凱顆殼課墾懇摳庫褲誇塊儈寬礦曠況虧巋窺饋潰擴闊蠟臘萊來賴藍欄攔籃闌蘭瀾讕攬覽懶纜爛濫撈勞澇樂鐳壘類淚籬離裡鯉禮麗厲勵礫歷瀝隸倆聯蓮連鐮憐澇簾斂臉鏈戀煉練糧涼兩輛諒療遼鐐獵臨鄰鱗凜1齡鈴凌靈嶺領餾劉龍聾鐧籠壟斷陝樓儩摟簣蘆盧顱廬爐擄鹵虜魯收祿錄陸驢呂鋁情侶屢縷慮濾綠巒攣孿灤亂掄輪倫崙淪綸論蘿羅邏鑼媽瑪碼螞蟻罵嗎買麥賣邁脈瞞饅蠻滿諦貓錨鉚貿麼黴沒鎂門悶們錳夢謎彌覓食綿緬廟滅憫閩鳴銘謬謀畝鈉納難撓腦惱鬧餒膩攆捻釀鳥聶嚙鑞鎳檸獰獰寧擰泥濘鈕紐膿濃農瘧諾歐鷗毆儚漚盤龐國愛賠噴鵬騙飄頻貧蘋憑評潑頗撲鋪樸譜臍齊騎廄啟氣棄諡牽扦釬鉛遷謙錢鉗潛淺煌塹槍嗆牆薔強搶鍬橋喬僑翹竅竊欽親輕氫傾公頃請慶瓊窮趨區軀驅齲鈞權勸卻鵲讓饒擾繞熱韌認縫紉榮絨軟銳閏潤灑薩鰓賽傘喪騷掃澀殺紗篩曬閃陝贍傷賞燒紹賒攝懾設紳審嬸腎滲聲繩勝聖師獅濕詩屍時蝕實識駛勢釋飾視試壽獸樞輸書贖屬術樹豎數帥雙誰稅順說碩爍絲飼聳愷頌訟誦擻蘇訴肅雖綏歲孫損筍縮瑣鎖獺撻抬攤貪癱灘壇譚談嘆湯燙濤綺騰謄銻題體抽屜條貼鐵廳聽烴銅統頭圖塗團頹蛻脫鴕馱駝橢窪襪彎灣頑萬網韋違圍為濰維葦偉偽緯謂衛溫聞紋穩問甕撾蝸渦窩嗚鎢烏詬無蕪吳塢霧誤錫婢騨銑戲細蝦轄峽俠狹廈鍁鮮纖鹹賢銜閒顯險現獻縣餡羨慕憲線廂鑲鄉詳響項蕭銷曉嘯蠍協挾攜脅迫寫瀉謝鋅挑釁興洶銹繡虛噓須許緒續軒懸選癬綏學勳詢尋馴訓訊遜壓鴉鴨啞亞是閹煙鹽嚴顏閻艷厭硯彥諺驗鴯楊揚潰瘍陽癢養樣瑤搖堯遙窯謠藥爺頁業葉醫銥頤遺儀彝蟻藝億憶義詣議誼譯異繹蔭陰銀飲嬰鷹應纓瑩螢營螢蠅穎劦擁傭癰踴詠湧優憂郵鈾猶遊誘輿魚漁娛與嶼語籲籲禦獄譽預出鴇淵轅園員圓緣遠願約躍婆婆婆鄖勻隕運蘊醞釀韻雜災載攢暫贊贓物灶責擇則澤賊贈紮紮軋錚閘詐齋債氈盞斬輒嶄棧戰綻張漲帳賬脹趙蟄轍鍺這貞針偵診鎮陣掙睜猙幀鄭證織職執紙摯擲格質鐘終種腫眾詬軸皺晝驟豬諸誅燭矚目澗石駐專磚轉賺樁莊裝妝壯狀錐贅墜綴謔濁茲資漬蹤綜總縱鄒詛組鑽致鐘麼為只兇準啟板裡靂餘鏈洩';
}
function FTPYStr()
{
return '皚藹礙愛翱襖奧壩罷擺敗頒布絆幫綁鎊剝飽寶報鮑輩貝鋇狽備閉邊編貶變辯辮鱔廁側冊測層詔攙摻蟬饞諂纏鏟產闡述顫場嚐長償腸廠暢鈔車徹塵陳襯撐稱懲誠驍痴遲馳恥齒熾沖蟲寵疇躊籌綢醜櫥廚鋤雛田儲觸處傳瘡闖創錘純綽辭詞賜聰蔥煙囪從叢湊竄錯達帶貸擔單鄲撣膽憚爆彈當擋黨蕩檔搗島禱導盜燈鄧敵滌遞締點墊電淀釣調疊諜疊釘頂錠訂東動棟凍鬥犢獨讀賭鍍鍛斷緞兌隊對噸頓鈍奪鵝額訛惡餓兒爾餌貳發罰閥琺礬釩釩煩範販飯訪紡飛廢費紛墳奮憤糞豐楓鋒風瘋馮縫諷鳳膚輻撫輔賦復負訃婦縛此鈣蓋幹趕稈贛岡剛鋼綱崗皋鎬擱鴿閣鉻個給龔宮鞏貢鉤溝構購夠蠱顧剮關觀館慣貫廣規矽歸龜閨軌詭櫃貴劊輥滾鍋國過駭韓漢閻鶴賀橫轟鴻紅後壺護滬戶嘩華畫劃話懷壞歡環還緩換喚深煥渙黃謊揮輝賄穢會燴概括軄繪葷渾夥獲貨禍擊機積飢謔雞績緝極輯級擠幾薊劑濟計記際繼紀夾莢頰賈鉀價駕殲監堅纈間艱緘繭檢堿鹼揀撿簡儉減薦門檻鑑踐賤見鍵艦劍餞漸濺澗漿蔣槳獎講醬膠澆驕嬌攪鉸矯僥腳餃繳絞轎較秸階節莖驚經頸靜音徑痙競淨糾廄舊駒舉據鋸懼劇鵑絹傑潔結誡屆緊錦僅謹進晉燼盡勁荊覺決訣絕鈞軍駿開凱顆殼課墾懇摳庫褲誇塊儈寬礦曠況虧巋窺饋潰擴闊蠟臘萊來賴藍欄攔籃闌蘭瀾讕攬覽懶纜爛濫撈勞澇樂鐳壘類淚籬離裡鯉禮麗厲勵礫歷瀝隸倆聯蓮連鐮憐澇簾斂臉鏈戀煉練糧涼兩輛諒療遼鐐獵臨鄰鱗凜1齡鈴凌靈嶺領餾劉龍聾鐧籠壟斷陝樓儩摟簣蘆盧顱廬爐擄鹵虜魯收祿錄陸驢呂鋁情侶屢縷慮濾綠巒攣孿灤亂掄輪倫崙淪綸論蘿羅邏鑼媽瑪碼螞蟻罵嗎買麥賣邁脈瞞饅蠻滿諦貓錨鉚貿麼黴沒鎂門悶們錳夢謎彌覓食綿緬廟滅憫閩鳴銘謬謀畝鈉納難撓腦惱鬧餒膩攆捻釀鳥聶嚙鑞鎳檸獰獰寧擰泥濘鈕紐膿濃農瘧諾歐鷗毆儚漚盤龐國愛賠噴鵬騙飄頻貧蘋憑評潑頗撲鋪樸譜臍齊騎廄啟氣棄証牽扡釺鉛遷出謙錢鉗潛淺煌塹槍嗆牆薔強搶鍬橋喬僑翹竅竊欽親輕氫傾公頃請慶瓊窮趨區軀驅齲鈞權勸卻鵲讓饒擾繞熱韌認縫紉榮絨軟銳閏潤灑薩鰓賽傘喪騷掃澀殺紗篩曬閃陝贍傷賞燒紹賒攝懾設紳審嬸腎滲聲繩勝聖師獅濕詩屍時蝕實識駛勢釋飾視試壽獸樞輸書贖屬術樹豎數帥雙誰稅順說碩爍絲飼聳愷頌訟誦擻蘇訴肅雖綏歲孫損筍縮瑣鎖獺撻抬攤貪癱灘壇譚談嘆湯燙濤綺騰謄銻題體抽屜條貼鐵廳聽烴銅統頭圖塗團頹蛻脫鴕馱駝橢窪襪彎灣頑萬網韋違圍為濰維葦偉偽緯謂衛溫聞紋穩問甕撾蝸渦窩嗚鎢烏詬無蕪吳塢霧務誤錫甄選襲銑戲細蝦轄峽俠狹廈鍁鮮纖鹹賢銜閒顯險現獻縣餡羨慕憲線廂鑲鄉詳響項蕭銷曉嘯蠍協挾攜脅迫寫瀉謝鋅挑釁興洶銹繡虛噓須許緒續軒懸選癬綏學勳詢尋馴訓訊遜壓鴉鴨啞亞是閹煙鹽嚴顏閻艷厭硯彥諺驗鴯楊揚潰瘍陽癢養樣瑤搖堯遙窯謠藥爺頁業葉醫銥頤遺儀彝蟻藝億憶義詣議誼譯異繹蔭陰銀飲嬰鷹應纓瑩螢營螢蠅穎劦擁傭癰踴詠湧優憂郵鈾猶遊誘輿魚漁娛與嶼語籲籲禦獄譽預出鴇淵轅園員圓緣遠願約躍婆婆婆鄖勻隕運蘊醞釀韻雜災載攢暫贊贓物灶責擇則澤賊贈紮紮軋錚閘詐齋債氈盞斬輒嶄棧戰綻張漲帳賬脹趙蟄轍鍺這貞針偵診鎮陣掙睜猙幀鄭證織職執紙摯擲格質鐘終種腫眾詬軸皺晝驟豬諸誅燭矚目澗石駐專磚轉賺樁莊裝妝壯狀錐贅墜綴諄濁茲資漬蹤綜總縱鄒詛組鑽致鐘麼為只兇準啟板裡靂餘鏈洩';
}
function Traditionalized(cc){
var str='',ss=JTPYStr(),tt=FTPYStr();
for(var i=0;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){
i=0;i {
if(cc.charCodeAt(i)>10000&&tt.indexOf(cc.charAt(i))!=-1)>10000&&tt.indexOf(cc.charAt(i))!=-1) tt.indexOf(cc.charAt(i)));
else str =cc.charAt(i);
}
function setCookie(name, value) //cookies设置
{
var argv = setCookie.arguments;
var argc = setCookie.arguments.length;
var 过期 = (argc > 2) ? argv[2]:空;
if(expires!=null)
{
var LargeExpDate = new Date ();
LargeExpDate.setTime(LargeExpDate.getTime() (过期*1000*3600*24));
}
document.cookie = name "= escape (value) ((expires == null) ? "" : ("; expires=" LargeExpDate.toGMTString()));
}
function getCookie(Name) //cookies读取
{
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 gb2big5_Obj=document.getElementById("gb2big5")
if (gb2big5_Obj)
{
var JF_cn="ft" self.location。 hostname.toString().replace(//./g,"")
var BodyIsFt=getCookie(JF_cn)
if(BodyIsFt!="1")BodyIsFt=Default_isFT
with(gb2big5_Obj)
{
非 if(typeof(document.all)!="object") // IE浏览器
{
href="javascript:StranBody()"
}
else
{
href="#";
onclick= new Function("StranBody();return false")
}
title=StranText("点击以繁体中文方式浏览",1,1)
innerHTML=StranText(innerHTML, 1,1)
}
if(BodyIsFt=="1"){setTimeout("StranBody()",StranIt_Delay)}
}
繁体中文
脚本>