브라우저 국가 이름 표시, 매우 간단한 것
저자:Eve Cole
업데이트 시간:2009-06-17 17:11:25
<!-- 把하면代码加到<body>区域中 -->
<SCRIPT LANGUAGE="자바스크립트">
<!-- 시작
if (navigator.browserLanguage.substr(0,2) == "af")
document.write('아프리칸스어')
else if (navigator.browserLanguage.substr(0,2) == "ar")
{
if (navigator.browserLanguage.substr(3,2) == "ae")
document.write('아랍어/아랍에미리트')
else if (navigator.browserLanguage.substr(3,2) == "bh")
document.write('아랍어/바레인')
else if (navigator.browserLanguage.substr(3,2) == "예")
document.write('아랍어/이집트')
else if (navigator.browserLanguage.substr(3,2) == "dz")
document.write('아랍어/알제리')
else if (navigator.browserLanguage.substr(3,2) == "iq")
document.write('아랍어/이라크')
else if (navigator.browserLanguage.substr(3,2) == "jo")
document.write('아랍어/요르단')
else if (navigator.browserLanguage.substr(3,2) == "kw")
document.write('아랍어/쿠웨이트')
else if (navigator.browserLanguage.substr(3,2) == "lb")
document.write('아랍어/레바논')
else if (navigator.browserLanguage.substr(3,2) == "ly")
document.write('아랍어/리비아')
else if (navigator.browserLanguage.substr(3,2) == "ma")
document.write('아랍어/모로코')
else if (navigator.browserLanguage.substr(3,2) == "om")
document.write('아랍어/오만')
else if (navigator.browserLanguage.substr(3,2) == "qa")
document.write('아랍어/카타르')
else if (navigator.browserLanguage.substr(3,2) == "sa")
document.write('아랍어/사우디아라비아')
else if (navigator.browserLanguage.substr(3,2) == "sy")
document.write('아랍어/시리아')
else if (navigator.browserLanguage.substr(3,2) == "tn")
document.write('아랍어/튀니지')
else if (navigator.browserLanguage.substr(3,2) == "예")
document.write('아랍어/예멘')
else document.write('아랍어')
}
else if (navigator.browserLanguage.substr(0,2) == "be")
document.write('벨로루시어')
else if (navigator.browserLanguage.substr(0,2) == "bg")
document.write('불가리아어')
else if (navigator.browserLanguage.substr(0,2) == "ca")
document.write('카탈로니아어')
else if (navigator.browserLanguage.substr(0,2) == "cs")
document.write('체코어')
else if (navigator.browserLanguage.substr(0,2) == "da")
document.write('덴마크어')
else if (navigator.browserLanguage.substr(0,2) == "de")
{
if (navigator.browserLanguage.substr(3,2) == "at")
document.write('독일어/오스트리아')
else if (navigator.browserLanguage.substr(3,2) == "ch")
document.write('독일어/스위스')
else if (navigator.browserLanguage.substr(3,2) == "li")
document.write('독일어/리히텐슈타인')
else if (navigator.browserLanguage.substr(3,2) == "lu")
document.write('독일어/룩셈부르크')
else document.write('독일어 / 독일')
}
else if (navigator.browserLanguage.substr(0,2) == "el")
document.write('그리스어 / 그리스')
else if (navigator.browserLanguage.substr(0,2) == "en")
{
if (navigator.browserLanguage.substr(3,2) == "우리")
document.write('영어/미국')
else if (navigator.browserLanguage.substr(3,2) == "au")
document.write('영어 / 호주')
else if (navigator.browserLanguage.substr(3,2) == "bz")
document.write('영어 / 벨리즈')
else if (navigator.browserLanguage.substr(3,2) == "ca")
document.write('영어/캐나다')
else if (navigator.browserLanguage.substr(3,2) == "gb")
document.write('영어 / 영국')
else if (navigator.browserLanguage.substr(3,2) == "ie")
document.write('영어/아일랜드')
else if (navigator.browserLanguage.substr(3,2) == "jm")
document.write('영어/자메이카')
else if (navigator.browserLanguage.substr(3,2) == "nz")
document.write('영어/뉴질랜드')
else if (navigator.browserLanguage.substr(3,2) == "tt")
document.write('영어 / 트리니다드')
else if (navigator.browserLanguage.substr(3,2) == "za")
document.write('영어/남아프리카공화국')
else document.write('영어')
}
else if (navigator.browserLanguage.substr(0,2) == "es")
{
if (navigator.browserLanguage.substr(3,2) == "ar")
document.write('스페인어/아르헨티나')
else if (navigator.browserLanguage.substr(3,2) == "bo")
document.write('스페인어/볼리비아')
else if (navigator.browserLanguage.substr(3,2) == "cl")
document.write('스페인어/칠레')
else if (navigator.browserLanguage.substr(3,2) == "co")
document.write('스페인어/콜롬비아')
else if (navigator.browserLanguage.substr(3,2) == "cr")
document.write('스페인어/코스타리카')
else if (navigator.browserLanguage.substr(3,2) == "do")
document.write('스페인어/도미니카공화국')
else if (navigator.browserLanguage.substr(3,2) == "ec")
document.write('스페인어/에콰도르')
else if (navigator.browserLanguage.substr(3,2) == "gt")
document.write('스페인어/과테말라')
else if (navigator.browserLanguage.substr(3,2) == "hn")
document.write('스페인어/온두라스')
else if (navigator.browserLanguage.substr(3,2) == "mx")
document.write('스페인어/멕시코')
else if (navigator.browserLanguage.substr(3,2) == "ni")
document.write('스페인어/니카라과')
else if (navigator.browserLanguage.substr(3,2) == "pa")
document.write('스페인어/파나마')
else if (navigator.browserLanguage.substr(3,2) == "pe")
document.write('스페인어/페루')
else if (navigator.browserLanguage.substr(3,2) == "pr")
document.write('스페인어 / 푸에르토리코')
else if (navigator.browserLanguage.substr(3,2) == "py")
document.write('스페인어 / 파라과이')
else if (navigator.browserLanguage.substr(3,2) == "sv")
document.write('스페인어/엘살바도르')
else if (navigator.browserLanguage.substr(3,2) == "uy")
document.write('스페인어/우루과이')
else if (navigator.browserLanguage.substr(3,2) == "ve")
document.write('스페인어/베네수엘라')
else document.write('스페인어 / 스페인')
}
else if (navigator.browserLanguage.substr(0,2) == "et")
document.write('에스토니아어')
else if (navigator.browserLanguage.substr(0,2) == "eu")
document.write('바스크어')
else if (navigator.browserLanguage.substr(0,2) == "fa")
document.write('페르시아어')
else if (navigator.browserLanguage.substr(0,2) == "fi")
document.write('핀란드어')
else if (navigator.browserLanguage.substr(0,2) == "fo")
document.write('페로어')
else if (navigator.browserLanguage.substr(0,2) == "fr")
{
if (navigator.browserLanguage.substr(3,2) == "be")
document.write('프랑스어/벨기에')
else if (navigator.browserLanguage.substr(3,2) == "ca")
document.write('프랑스어/캐나다')
else if (navigator.browserLanguage.substr(3,2) == "ch")
document.write('프랑스어/스위스')
else if (navigator.browserLanguage.substr(3,2) == "ca")
document.write('프랑스어/룩셈부르크')
else document.write('프랑스어 / 프랑스')
}
else if (navigator.browserLanguage.substr(0,2) == "gd")
{
if (navigator.browserLanguage.substr(3,2) == "ie")
document.write('게일어/아일랜드')
else document.write('게일어/스코틀랜드')
}
else if (navigator.browserLanguage.substr(0,2) == "그")
document.write('히브리어')
else if (navigator.browserLanguage.substr(0,2) == "안녕하세요")
document.write('힌디어')
else if (navigator.browserLanguage.substr(0,2) == "hr")
document.write('크로아티아어')
else if (navigator.browserLanguage.substr(0,2) == "hu")
document.write('헝가리어')
else if (navigator.browserLanguage.substr(0,2) == "in")
document.write('인도네시아어')
else if (navigator.browserLanguage.substr(0,2) == "is")
document.write('아이슬란드어')
else if (navigator.browserLanguage.substr(0,2) == "그")
document.write('히브리어')
else if (navigator.browserLanguage.substr(0,2) == "it")
{
if (navigator.browserLanguage.substr(3,2) == "ch")
document.write('이탈리아어/스위스')
else document.write('이탈리아어 / 이탈리아')
}
else if (navigator.browserLanguage.substr(0,2) == "ja")
document.write('일본어/일본')
else if (navigator.browserLanguage.substr(0,2) == "ji")
document.write('이디시어')
else if (navigator.browserLanguage.substr(0,2) == "ko")
document.write('한국어 / 한국')
else if (navigator.browserLanguage.substr(0,2) == "lt")
document.write('리투아니아어 / 리투아니아')
else if (navigator.browserLanguage.substr(0,2) == "lv")
document.write('라트비아어')
else if (navigator.browserLanguage.substr(0,2) == "mk")
document.write('마케도니아어/마케도니아어')
else if (navigator.browserLanguage.substr(0,2) == "ms")
document.write('말레이시아어/말레이시아어')
else if (navigator.browserLanguage.substr(0,2) == "mt")
document.write('몰타어 / 몰타어')
else if (navigator.browserLanguage.substr(0,2) == "nl")
{
if (navigator.browserLanguage.substr(3,2) == "be")
document.write('네덜란드/벨기에')
else document.write('네덜란드/네덜란드')
}
else if (navigator.browserLanguage.substr(0,2) == "pl")
document.write('폴란드어 / 폴란드')
else if (navigator.browserLanguage.substr(0,2) == "pt")
{
if (navigator.browserLanguage.substr(3,2) == "br")
document.write('포르투갈어/브라질')
else document.write('포르투갈어 / 포르투갈어')
}
else if (navigator.browserLanguage.substr(0,2) == "rm")
document.write('Rhaeto-Romanic / 루마니아')
else if (navigator.browserLanguage.substr(0,2) == "ro")
document.write('루마니아어/루마니아')
else if (navigator.browserLanguage.substr(0,2) == "ru")
document.write('러시아어 / 러시아')
else if (navigator.browserLanguage.substr(0,2) == "sb")
document.write('소르비안')
else if (navigator.browserLanguage.substr(0,2) == "sk")
document.write('슬로바키아어')
else if (navigator.browserLanguage.substr(0,2) == "sl")
document.write('슬로베니아어')
else if (navigator.browserLanguage.substr(0,2) == "sq")
document.write('알바니아어 / 알바니아')
else if (navigator.browserLanguage.substr(0,2) == "sr")
document.write('세르비아 / 세르비아')
else if (navigator.browserLanguage.substr(0,2) == "sv")
{
if (navigator.browserLanguage.substr(3,2) == "fi")
document.write('스웨덴어/핀란드어')
else document.write('스웨덴어 / 스웨덴')
}
else if (navigator.browserLanguage.substr(0,2) == "sx")
document.write('수투')
else if (navigator.browserLanguage.substr(0,2) == "sz")
document.write('사미')
else if (navigator.browserLanguage.substr(0,2) == "th")
document.write('태국어 / 태국')
else if (navigator.browserLanguage.substr(0,2) == "tn")
document.write('츠와나어')
else if (navigator.browserLanguage.substr(0,2) == "tr")
document.write('터키어/터키어')
else if (navigator.browserLanguage.substr(0,2) == "ts")
document.write('총가')
else if (navigator.browserLanguage.substr(0,2) == "uk")
document.write('우크라이나어')
else if (navigator.browserLanguage.substr(0,2) == "th")
document.write('태국어 / 태국')
else if (navigator.browserLanguage.substr(0,2) == "ur")
document.write('우르두어')
else if (navigator.browserLanguage.substr(0,2) == "ve")
document.write('벤다')
else if (navigator.browserLanguage.substr(0,2) == "vi")
document.write('베트남어 / 베트남어')
else if (navigator.browserLanguage.substr(0,2) == "xh")
document.write('호사')
else if (navigator.browserLanguage.substr(0,2) == "zh")
{
if (navigator.browserLanguage.substr(3,2) == "cn")
document.write('중국어/중국')
else if (navigator.browserLanguage.substr(3,2) == "hk")
document.write('중국어/홍콩')
else if (navigator.browserLanguage.substr(3,2) == "sg")
document.write('중국어/싱가포르')
else if (navigator.browserLanguage.substr(3,2) == "tw")
document.write('중국어/대만')
else document.write('중국어 / 중국')
}
else if (navigator.browserLanguage.substr(0,2) == "zu")
document.write('줄루어')
또 다른
document.write('결정할 수 없습니다')
// 끝 -->
</script>