E

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

· 2006-05-11 (목) 10:50:27 · 2767
<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건
+
제목 글쓴이 날짜 조회
06-05-31 조회 4,124
06-05-31 조회 4,356
06-05-30 조회 3,384
06-05-26 조회 4,484
06-05-26 조회 4,770
06-05-15 조회 4,503
06-05-14 조회 5,736
06-05-12 조회 3,172
06-05-11 조회 4,583
06-05-11 조회 2,724
06-05-11 조회 2,841
06-05-11 조회 2,560
06-05-11 조회 2,826
06-05-11 조회 2,415
06-05-11 조회 2,955
06-05-10 조회 3,442
06-05-09 조회 8,117
06-05-09 조회 3,337
06-05-09 조회 3,438
06-05-07 조회 3,919
06-05-07 조회 3,017
06-05-07 조회 3,645
06-04-29 조회 3,669
06-04-28 조회 4,562
06-04-25 조회 3,467
06-04-25 조회 3,753
06-04-25 조회 3,561
06-04-22 조회 3,184
06-04-13 조회 4,508
06-04-13 조회 4,375
06-04-09 조회 3,344
06-03-30 조회 4,769
06-03-24 조회 3,597
06-03-21 조회 3,589
06-03-15 조회 4,614
06-03-11 조회 3,222
06-03-03 조회 3,465
06-02-22 조회 3,272
06-01-27 조회 3,429
06-01-05 조회 3,515
05-12-30 조회 3,361
05-12-29 조회 3,850
bbbking
05-10-22 조회 5,315
05-08-19 조회 5,520
05-08-16 조회 3,548
05-07-13 조회 4,739
05-07-11 조회 3,888
05-07-01 조회 3,487
05-07-01 조회 3,093
05-07-01 조회 3,554
bbbking
05-06-30 조회 6,267
bbbking
05-06-16 조회 6,838
05-04-04 조회 6,373
05-03-13 조회 3,258
05-03-13 조회 2,331
05-03-13 조회 2,492
04-12-16 조회 5,793
04-11-29 조회 4,163
04-11-28 조회 3,959
04-11-28 조회 3,156
04-11-28 조회 3,805
04-11-28 조회 3,577
04-11-24 조회 3,012
04-11-12 조회 2,972
04-08-24 조회 5,280
04-08-10 조회 4,490
04-08-10 조회 5,084