|
Информация о пользователе |
::..::..:: |
Для того, что бы запустить
этот скрипт Вы должны скопировать ниже указанный
текст в документ HTML и запустить этот
файл.
<Script
language="JavaScript">
<!-- Hiding
//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>
Разместил
Razer
по материалам www.geocities.com | |
|
| | | | | | |
|