E

사용자 웹브라우저의 디폴트 언어에 따라 리다이렉트 시키기

· 2006-05-11 (목) 10:50:27 · 2844
<SCRIPT LANGUAGE="JavaScript1.2">
<!-- Begin
if (navigator.appName == 'Netscape')
var language = navigator.language;
else
var language = navigator.browserLanguage;

/*-------------------------------------------------------------
Netscape instructions:
In Netscape, find the language you want to redirect by going to

Edit Menu --> Preferences...

Then click the '+' box next to 'Navigator' and click 'Languages'
Click 'Add' then find the languages you want and add them below.

---------------------------------------------------------------

Microsoft Internet Explorer instructions:
In MSIE, find the language you want to redirect by going to

Tools Menu --> Internet Options...

Then click the 'Languages' button near the bottom of the page.
Click 'Add' then find the languages you want and add them below.

-------------------------------------------------------------*/

if (language.indexOf('en') > -1) document.location.href = 'English.html';
else if (language.indexOf('nl') > -1) document.location.href = 'dutch.html';
else if (language.indexOf('fr') > -1) document.location.href = 'french.html';
else if (language.indexOf('de') > -1) document.location.href = 'german.html';
else if (language.indexOf('ja') > -1) document.location.href = 'japanese.html';
else if (language.indexOf('it') > -1) document.location.href = 'italian.html';
else if (language.indexOf('pt') > -1) document.location.href = 'portuguese.html';
else if (language.indexOf('es') > -1) document.location.href = 'Spanish.html';
else if (language.indexOf('sv') > -1) document.location.href = 'swedish.html';
else if (language.indexOf('zh') > -1) document.location.href = 'chinese.html';
else
document.location.href = 'English.html';
// End -->
</script><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]</div>
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,188건
+
제목 글쓴이 날짜 조회
05-08-01 조회 4,039
05-07-24 조회 5,409
05-07-16 조회 5,517
bbbking
05-07-08 조회 3,342
bbbking
05-07-08 조회 3,139
bbbking
05-07-08 조회 8,775
05-07-01 조회 3,322
05-06-30 조회 4,705
05-06-24 조회 5,172
05-06-24 조회 3,406
05-06-21 조회 6,813
05-06-17 조회 4,643
05-06-15 조회 5,454
05-05-04 조회 3,695
05-04-11 조회 4,794
05-04-04 조회 5,206
05-04-02 조회 3,598
05-03-30 조회 3,300
05-03-15 조회 3,453
05-03-15 조회 3,131
05-03-14 조회 2,609
05-03-13 조회 2,823
05-03-13 조회 2,966
05-03-13 조회 2,796
05-03-13 조회 3,040
05-03-13 조회 4,634
05-03-13 조회 3,175
05-03-13 조회 2,602
05-03-13 조회 2,630
05-03-13 조회 2,491
05-03-13 조회 3,664
05-03-13 조회 2,697
05-03-13 조회 2,708
05-03-13 조회 3,222
05-03-13 조회 3,493
05-03-13 조회 3,085
05-03-13 조회 3,036
05-03-13 조회 3,715
05-03-13 조회 2,654
05-03-13 조회 4,165
05-03-13 조회 2,876
05-03-13 조회 3,232
05-03-13 조회 2,703
05-03-13 조회 3,884
05-03-13 조회 2,573
05-03-12 조회 4,907
05-02-04 조회 3,482
04-12-13 조회 7,110
04-12-01 조회 3,387
04-11-30 조회 3,456
04-11-30 조회 2,795
04-11-30 조회 2,695
04-11-30 조회 4,098
04-11-29 조회 3,834
04-11-28 조회 3,768
04-11-28 조회 4,129
04-11-28 조회 3,554
04-11-28 조회 3,047
04-11-28 조회 3,588
04-11-24 조회 3,262
04-11-23 조회 3,041
04-11-17 조회 3,050
04-11-12 조회 3,333
04-11-12 조회 2,678
04-11-10 조회 3,908
04-08-23 조회 4,425
04-08-09 조회 5,072
04-08-08 조회 4,809
04-08-05 조회 6,608
03-09-26 조회 5,262