OS~부터 온글~ 정보
OS~부터 온글~본문
페이스북처럼
글에서..
글쓴자의
OS를 표시할수 잇을까요?
iphone 으로 부터
window7으로 부터
이런식으로 표시할려면 어떻게 하나요?
글에서..
글쓴자의
OS를 표시할수 잇을까요?
iphone 으로 부터
window7으로 부터
이런식으로 표시할려면 어떻게 하나요?
댓글 전체
이 스크립트를 참조해서 만들면 될 것 같습니다.
http://www.daprint.co.kr/bbs/board.php?bo_table=javascript&wr_id=475
링크가 깨질 때를 대비해서 소스 남기고 출처 적어놓습니다.
혹시라도 문제의 소지가 있다면 소스는 지우도록 하겠습니다.
<scRIPT LANGUAGE="Javascript">
<!--
function checkOS() {
if(navigator.userAgent.indexOf('IRIX') != -1)
{ var OpSys = "Irix"; }
else if((navigator.userAgent.indexOf('Win') != -1) &&
(navigator.userAgent.indexOf('95') != -1))
{ var OpSys = "Windows 98"; }
else if(navigator.userAgent.indexOf('Win') != -1)
{ var OpSys = "Windows Me or NT or 2000"; }
else if(navigator.userAgent.indexOf('Mac') != -1)
{ var OpSys = "Macintosh"; }
else { var OpSys = "other"; }
return OpSys;
}
// -->
</scRIPT>
<title>방문자의 os 알려주기</title>
<body>
<script>
<!--
var OpSys = checkOS();
document.write(OpSys);
//-->
</script>
[출처] 다클릭 - http://www.daprint.co.kr/bbs/board.php?bo_table=javascript&wr_id=475
도움이 되시길...
http://www.daprint.co.kr/bbs/board.php?bo_table=javascript&wr_id=475
링크가 깨질 때를 대비해서 소스 남기고 출처 적어놓습니다.
혹시라도 문제의 소지가 있다면 소스는 지우도록 하겠습니다.
<scRIPT LANGUAGE="Javascript">
<!--
function checkOS() {
if(navigator.userAgent.indexOf('IRIX') != -1)
{ var OpSys = "Irix"; }
else if((navigator.userAgent.indexOf('Win') != -1) &&
(navigator.userAgent.indexOf('95') != -1))
{ var OpSys = "Windows 98"; }
else if(navigator.userAgent.indexOf('Win') != -1)
{ var OpSys = "Windows Me or NT or 2000"; }
else if(navigator.userAgent.indexOf('Mac') != -1)
{ var OpSys = "Macintosh"; }
else { var OpSys = "other"; }
return OpSys;
}
// -->
</scRIPT>
<title>방문자의 os 알려주기</title>
<body>
<script>
<!--
var OpSys = checkOS();
document.write(OpSys);
//-->
</script>
[출처] 다클릭 - http://www.daprint.co.kr/bbs/board.php?bo_table=javascript&wr_id=475
도움이 되시길...