HTTP_USER_AGENT ..
    ~
Advanced Hosters -

IseeDeadPeople
: 06.12.2005
: 18000
# : 24, 2008 10:48 pm
.. JS
"navigator.userAgent.indexOf"

, () () ...
6 - 7

"SV1" SP2 .. ( - )

3 , 4 ( )



, .
http://m.lsl.com/

Hello_Kitty
V.I.P.
: 30.04.2007
: 10705
# : 25, 2008 6:33 am
:
<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 = "Windows95"; }
else if((navigator.userAgent.indexOf('Win') != -1) &&
(navigator.userAgent.indexOf('98') != -1))
{ var OpSys = "Windows98"; }
else if((navigator.userAgent.indexOf('Win') != -1) &&
(navigator.userAgent.indexOf('2000') != -1))
{ var OpSys = "Windows2000"; }
else if(navigator.userAgent.indexOf('Win') != -1)
{ var OpSys = "Windows3.1 NT"; }
else if(navigator.userAgent.indexOf('Mac') != -1)
{ var OpSys = "Macintosh"; }
else if(navigator.userAgent.indexOf('UNIX') != -1)
{ var OpSys = "UNIX"; }
else { var OpSys = "."; }
return OpSys;
}
//-->
</script>


Smile
- ? Shocked
Dedicated Hosting & Virtual Dedicated Hosting (XEN virtualization) / Openvpn & Pptp & Double & Http Proxy

Hello_Kitty
V.I.P.
: 30.04.2007
: 10705
# : 25, 2008 6:42 am
, SP2, :

SP2

, Internet Explorer SP2, window.navigator.userAgent.
1.

:
var g_fIsSP2= false;
function browserVersion()
{
   g_fIsSP2= (window.navigator.userAgent.indexOf("SV1") != -1);
   if(g_fIsSP2)
   {
      // This browser is Internet Explorer in SP2.
   }
   else
   {
      // This browser is not Internet Explorer in SP2.
   }
}



user agent SV1, , Internet Explorer SP2.
Dedicated Hosting & Virtual Dedicated Hosting (XEN virtualization) / Openvpn & Pptp & Double & Http Proxy

Hello_Kitty
V.I.P.
: 30.04.2007
: 10705
# : 25, 2008 6:52 am
:
6 - 7


:
(navigator.userAgent.indexOf("MSIE 7")


.

. , :
:
if ( navigator.userAgent.toLowerCase().indexOf("; sv1") > 0 ) osversion += " SP2"; else if ( navigator.userAgent.toLowerCase().indexOf("; sv2") > 0 ) osversion += " SP3"; else if ( navigator.userAgent.toLowerCase().indexOf("; sv3") > 0 ) osversion += " SP4"; else if ( navigator.userAgent.toLowerCase().indexOf("; sv4") > 0 ) osversion += " SP5"; else if ( navigator.userAgent.toLowerCase().indexOf("; sv5") > 0 ) osversion += " SP6"; else if ( navigator.userAgent.toLowerCase().indexOf("; sv6") > 0 ) osversion += " SP7"; else osversion = osversion; }



, .
Dedicated Hosting & Virtual Dedicated Hosting (XEN virtualization) / Openvpn & Pptp & Double & Http Proxy

Hello_Kitty
V.I.P.
: 30.04.2007
: 10705
# : 25, 2008 6:54 am
. 1800 .
Dedicated Hosting & Virtual Dedicated Hosting (XEN virtualization) / Openvpn & Pptp & Double & Http Proxy
    ~