GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   SP2 Detection Code? (https://gfy.com/showthread.php?t=372840)

infecto 10-16-2004 12:30 AM

SP2 Detection Code?
 
Whats the best/easiest way to detect if a surfer is using SP2. I am not sure of the exact code but it has to be possible no?

SmokeyTheBear 10-16-2004 01:11 AM

If the user agent string contains "SV1", Internet Explorer is in SP2.
PHP Code:



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.
    
}



SmokeyTheBear 10-16-2004 01:13 AM

The code all fucked up because the gfy mods couldn't figure out how to parse properly.

infecto 10-16-2004 08:55 AM

Quote:

Originally posted by SmokeyTheBear
The code all fucked up because the gfy mods couldn't figure out how to parse properly.
smokey is there anyway you can email to me [email protected] or ICQ (146664255)?

infecto 10-16-2004 10:14 AM

Nm. Just reread what you said and got the code now. Thanks man.


All times are GMT -7. The time now is 08:55 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123