E

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

· 2006-05-11 (목) 10:50:27 · 2842
<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건
+
제목 글쓴이 날짜 조회
12-01-11 조회 2,765
12-01-11 조회 1.2만
12-01-10 조회 2,861
12-01-08 조회 3,450
12-01-05 조회 5,342
11-12-29 조회 3,060
11-12-27 조회 2,849
11-12-25 조회 3,032
11-12-22 조회 3,470
11-12-14 조회 2,925
11-12-12 조회 3,562
11-11-28 조회 3,383
10-10-19 조회 2,846
08-09-05 조회 3,764
08-09-05 조회 3,579
08-06-14 조회 3,322
08-04-22 조회 3,603
08-04-17 조회 3,606
07-10-03 조회 4,216
07-10-03 조회 3,611
07-10-03 조회 7,297
07-10-03 조회 4,575
07-10-03 조회 3,271
07-10-03 조회 2,869
07-10-02 조회 3,578
07-10-02 조회 3,110
07-09-27 조회 5,028
07-09-27 조회 3,854
06-09-26 조회 3,518
06-09-26 조회 4,738
06-09-22 조회 3,911
06-09-22 조회 3,531
06-09-22 조회 4,276
06-09-21 조회 4,210
06-08-18 조회 3,698
05-11-30 조회 4,747
05-07-15 조회 4,598
05-03-23 조회 4,658
05-03-14 조회 3,326
05-03-13 조회 2,700
04-08-05 조회 5,776