Javascript / User Information / User Info
Very cool script. will get the Browser Name, Browser Version, Browser Plugins, Operational System, IP Address, Date, Timezone (GMT +/- in mins.), GMT Time, Current Location, Location referred from, Last Modified, Screen Size.
Browsers: IE5, NS4.xx, NS6, Opera, Mozilla
Browsers: IE5, NS4.xx, NS6, Opera, Mozilla
General Details
Snippet uploaded by: snippet
Email : webmaster@snippetlibrary.com
Snippet By: Lefteris Haritou
<!---Head--->
<script language="JavaScript">
<!-- Hiding
/* Script by Lefteris Haritou
http://www.geocities.com/~lef
Please keep the credit above (No lame copyrights , but just be fair)
IP address script by :
VortexWarp Technologies. (Jon Eyrick) vortexwarp@actionaccess.com
(©1996)
*/
//Operational System script
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 = "Windows 3.1 or NT"; }
else if(navigator.userAgent.indexOf('Mac') != -1)
{ var OpSys = "Macintosh"; }
else { var OpSys = "Other"; }
// Date Script
date= new Date();
zone= date.getTimezoneOffset();
gmt= date.toGMTString();
// Browser Script
bname=navigator.appName;
bversion=navigator.appVersion;
if (bname=="Netscape"){
bplugins=navigator.plugins.length;
}
// IP address script
if (bname=="Netscape"){
address=java.net.InetAddress.getLocalHost();
ip=address.getHostAddress();
}
//Locations
loc=location.href;
modi=document.lastModified;
refer=document.referrer;
// Screen Size Script
if (bname=="Netscape"){
var tools=java.awt.Toolkit.getDefaultToolkit();
var size=tools.getScreenSize();
w=size.width;
h=size.height;
}
document.bgColor="#000000"
document.fgColor="#0000FF"
// Displaying the Informations :
document.write("<CENTER><TABLE BORDER=2>")
document.write("<TR ALIGN=center ><TD BGCOLOR="#000000" COLSPAN=2><font size=+4>INFORMATIONS</font><font size=3> by Lef</font></TD></TR>")
document.write("<TR ALIGN=center ><TD BGCOLOR="#800000"><font style="color:#FFFF00" size=4>Browser Name</font></TD><TD BGCOLOR="#FFFFFF"><font size=4>",bname,"</font></TD></TR>")
document.write("<TR ALIGN=center ><TD BGCOLOR="#800000"><font style="color:#FFFF00" size=4>Browser Version</font></TD><TD BGCOLOR="#FFFFFF"><font size=4>",bversion,"</font></TD></TR>")
if (bname=="Netscape"){
document.write("<TR ALIGN=center ><TD BGCOLOR="#800000"><font style="color:#FFFF00" size=4>Browser Plugins</font></TD><TD BGCOLOR="#FFFFFF"><font size=4>",bplugins,"</font></TD></TR>")
}
document.write("<TR ALIGN=center ><TD BGCOLOR="#800000"><font style="color:#FFFF00" size=4>Operational System</font></TD><TD BGCOLOR="#FFFFFF"><font size=4>",OpSys,"</font></TD></TR>")
if (bname=="Netscape"){
document.write("<TR ALIGN=center ><TD BGCOLOR="#800000"><font style="color:#FFFF00" size=4>IP Address</font></TD><TD BGCOLOR="#FFFFFF"><font size=4>",ip,"</font></TD></TR>")
}
document.write("<TR ALIGN=center ><TD BGCOLOR="#800000"><font style="color:#FFFF00" size=4>Date</font></TD><TD BGCOLOR="#FFFFFF"><font size=4>",date,"</font></TD></TR>")
document.write("<TR ALIGN=center ><TD BGCOLOR="#800000"><font style="color:#FFFF00" size=4>Timezone (GMT +/- in mins.)</font></TD><TD BGCOLOR="#FFFFFF"><font size=4>",zone,"<font></TD></TR>")
document.write("<TR ALIGN=center ><TD BGCOLOR="#800000"><font style="color:#FFFF00" size=4>GMT Time</font></TD><TD BGCOLOR="#FFFFFF"><font size=4>",gmt,"</font></TD></TR>")
document.write("<TR ALIGN=center ><TD BGCOLOR="#800000"><font style="color:#FFFF00" size=4>Current Location</font></TD><TD BGCOLOR="#FFFFFF"><font size=4>",loc,"</font></TD></TR>")
document.write("<TR ALIGN=center ><TD BGCOLOR="#800000"><font style="color:#FFFF00" size=4>Location referred from</font></TD><TD BGCOLOR="#FFFFFF"><font size=4>",refer,"</font></TD></TR>")
document.write("<TR ALIGN=center ><TD BGCOLOR="#800000"><font style="color:#FFFF00" size=4>Last Modified</font></TD><TD BGCOLOR="#FFFFFF"><font size=4>",modi,"</font></TD></TR>")
if (bname=="Netscape"){
document.write("<TR ALIGN=center ><TD BGCOLOR="#800000"><font style="color:#FFFF00" size=4>Screen Size</font></TD><TD BGCOLOR="#FFFFFF"><font size=4>",w," x ",h,"</font></TD></TR>")
}
document.write("</TABLE></CENTER>")
// Done Hiding -->
</script>
<!---Body--->
none
No Reviews to show
