[html]
<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 95"; }
else if(navigator.userAgent.indexOf(‘Win’) != -1)
{ var OpSys = "Windows3.1 veya NT"; }
else if(navigator.userAgent.indexOf(‘Mac’) != -1)
{ var OpSys = "Macintosh"; }
else { var OpSys = "diger…"; }
return OpSys;
}
// –>
</SCRIPT>
<!–
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 95"; }
else if(navigator.userAgent.indexOf(‘Win’) != -1)
{ var OpSys = "Windows3.1 veya NT"; }
else if(navigator.userAgent.indexOf(‘Mac’) != -1)
{ var OpSys = "Macintosh"; }
else { var OpSys = "diger…"; }
return OpSys;
}
// –>
</SCRIPT>
<BODY BGCOLOR="#FFFFFF">
Isletim sisteminiz: <b>
<SCRIPT LANGUAGE="JavaScript">
<!–
var OpSys = checkOS();
document.write(OpSys);
// –>
</SCRIPT>
[/html]
kullanıcıya kullandığı işletim sistemini gösterebilirsiniz.