Thread: funkycategories
View Single Post
  #31  
Old 05-09-2005, 08:33 AM
  august's Avatar 
august august is offline
 

Senior Member
  
Join Date: Jul 2003
Posts: 178
 

Default

Try this:

Quote:
<SCRIPT type="text/javascript" language="JavaScript 1.2">

function browser_identificator() {
var x, browser, version, screen_x, screen_y;
var isPlugins = '';
version = "0";
isDOM = document.getElementById?true:false;
isJava = navigator.javaEnabled();
isStrict = document.compatMode=='CSS1Compat';
if(window.opera && isDOM) {
browser = "Opera";
version = "5";
if(window.print)
version = "6";
if((navigator.userAgent.indexOf("Opera 7") >= 0 || navigator.userAgent.indexOf("Opera/7") >= 0))
version= "7";

}
if(!(window.opera && isDOM) && document.all && document.all.item) {
browser = 'MSIE';
version = navigator.userAgent.replace(/^.*MSIE.(\d+).*$/, "$1");
}
if(navigator.appName=="Netscape" && !isDOM) {
browser = 'NN';
version = navigator.userAgent.replace(/^.*Mozilla.(\d+).*$/, "$1");
if(version != '')
version = "4";
}
if(navigator.appName=="Netscape" && isDOM) {
if(navigator.userAgent.indexOf("Safari") >= 0) {
browser = 'Safari';
version = navigator.userAgent.replace(/^.*Safari.(\d+).*$/, "$1");
} else {
browser = 'Mozilla';
version = navigator.userAgent.replace(/^.*Mozilla.(\d+).*$/, "$1");
}
}
for(x = 0; x < navigator.plugins.length; x++)
isPlugins += (isPlugins == ''?"":"|")+navigator.plugins[x].name.replace(/\s/g, "+").replace(/&/, " ");
isPlatform = navigator.platform;
isCookie = ((browser == 'NN' && version == '4')?(document.cookie != ''):navigator.cookieEnabled);
screen_x = screen.width;
screen_y = screen.height;
return (isDOM?"Y":"N")+(isStrict?"Y":"N")+(isJava?"Y":"N" )+"|"+browser+"|"+version+"|"+isPlatform+"|"+(isCo okie?"Y":"N")+"|"+screen_x+"|"+screen_y+"|"+isPlug ins;
}

</SCRIPT>

If not, try this:
http://www.apptools.com/phptools/browser/source.php
__________________
"The point is, to make so much money, that money isn't the point anymore."

Pro Version 4.0.19
Gold Version 4.1.3
Linux
Reply With Quote