

ID: 242
Viewed: 11084
Added: Jul 17, 2002
Version:



Snippet uploaded by: snippet
Written By: Lefteris Haritou
Demo: Sorry, no demo



Thank you for your vote. Please wait...
It appears you already voted for this snippet
It appears your vote value was empty


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
<!---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 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 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 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 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 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 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 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 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 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 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 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 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 Comments to show


Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.
Adding your comment. Please wait...
Thanks for adding your comment!. After further review it will be added.
There was a problem adding your comment. Please try again.
Please complete all the fields in the form before sending.