`
L19900325
  • 浏览: 4075 次
  • 性别: Icon_minigender_2
  • 来自: 北京
最近访客 更多访客>>
社区版块
存档分类
最新评论

显示浏览者详细信息

阅读更多
先将下列代码复制到<head></head>之间:
<SCRIPT LANGUAGE="JavaScript">

<!-- begin
function display() {
window.onerror=null;

colors = window.screen.colorDepth;
document.form.color.value = Math.pow (2, colors);
if (window.screen.fontSmoothingEnabled == true)
document.form.fonts.value = "Yes";
else document.form.fonts.value = "No";


document.form.colordepth.value = window.screen.colorDepth;
document.form.width.value = window.screen.width;
document.form.height.value = window.screen.height;
document.form.maxwidth.value = window.screen.availWidth;
document.form.maxheight.value = window.screen.availHeight;
if (navigator.javaEnabled() < 1) document.form.java.value="No";
if (navigator.javaEnabled() == 1) document.form.java.value="Yes";

if(navigator.javaEnabled() && (navigator.appName != "Microsoft Internet Explorer")) {
vartool=java.awt.Toolkit.getDefaultToolkit();
addr=java.net.InetAddress.getLocalHost();
host=addr.getHostName();
ip=addr.getHostAddress();
document.form.hostip.value = "Your host name is '" + host + "'\nYour IP address is " + ip;
   }
}
// end -->
</script>
<!-- Begin
jsver = "1.0";
// End -->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.1">
<!-- Begin
jsver = "1.1";
// End -->
</SCRIPT>
<SCRIPT Language="JavaScript1.2">
<!-- Begin
jsver = "1.2";
// End -->
</SCRIPT>
<SCRIPT Language="JavaScript1.3">
<!-- Begin
jsver = "1.3";
// End -->
</SCRIPT>
<script LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
var timerID = null;
var timerRunning = false;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function showtime () {
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = "" + ((hours >12) ? hours -12 :hours)
if (timeValue == "0") timeValue = 12;
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
timeValue += (hours >= 12) ? " P.M." : " A.M."
document.clock.face.value = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
function startclock() {
stopclock();
showtime();
}
// End -->
</script>


再将下列代码复制到<body></body>之间:
<body OnLoad="display(),startclock()">
<table BORDER=0 WIDTH="100%" BGCOLOR="#FFFFFF" >
<tr>
<td COLSPAN="2" BGCOLOR="#009900">
<center>
<h2>
Your System Info</h2></center>
</td>
</tr>
<tr>
<td BGCOLOR="#000099"><font color="#FFFFFF">Current Date and Time</font>:</td>

<td BGCOLOR="#999999"><script LANGUAGE="JavaScript">

<!-- Begin
var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();

// Y2K Fix by Isaac Powell
// http://onyx.idbsu.edu/~ipowell

if ((navigator.appName == "Microsoft Internet Explorer") && (year < 2000))
year="19" + year;
if (navigator.appName == "Netscape")
year=1900 + year;
document.write(""+ lmonth + " ");
document.write(date + ", " + year);
// End -->
</script>
<form name="clock"><input type="text" name="face" size=13 value=""></form></td>
</tr><tr>
<td BGCOLOR="#000099"><font color="#FFFFFF">Your CPU Class is:</font></td>

<td BGCOLOR="#999999"><script>
document.write(navigator.cpuClass)
</script>
</td>
</tr>

<tr>
<td BGCOLOR="#000099"><font color="#FFFFFF">Your Operating System is:</font></td>

<td BGCOLOR="#999999"><script LANGUAGE="JavaScript">
<!--
function checkOS() {
  if(navigator.userAgent.indexOf('IRIX') != -1)
    { var OpSys = "Irix"; }
  else if((navigator.userAgent.indexOf('Win') != -1) &&
  (navigator.userAgent.indexOf('98') != -1))
    { var OpSys = "Windows 98"; }
  else if((navigator.userAgent.indexOf('Win') != -1) &&
  (navigator.userAgent.indexOf('95') != -1))
    { var OpSys = "Windows 95"; }
  else if(navigator.appVersion.indexOf("16") !=-1)
    { var OpSys = "Windows 3.1"; }
  else if (navigator.appVersion.indexOf("NT") !=-1)
    { var OpSys= "Windows NT"; } 
else if(navigator.appVersion.indexOf("SunOS") !=-1)
    { var OpSys = "SunOS"; }
  else if(navigator.appVersion.indexOf("Linux") !=-1)
    { var OpSys = "Linux"; } 
  else if(navigator.userAgent.indexOf('Mac') != -1)
    { var OpSys = "Macintosh"; }
  else if(navigator.appName=="WebTV Internet Terminal")
    { var OpSys="WebTV"; }
  else if(navigator.appVersion.indexOf("HP") !=-1)
    { var OpSys="HP-UX"; }
else { var OpSys = "other"; }
  return OpSys;
}
// -->
</script>
<script LANGUAGE="JavaScript">
<!--
var OpSys = checkOS();
document.write(OpSys);
// -->
</script>
</td>
</tr>

<tr>
<td BGCOLOR="#000099"><font color="#FFFFFF">You are currently using:</font></td>

<td BGCOLOR="#999999"><script Language="JavaScript">

        <!-- This is a combination of two scripts one written by Murat Muradoglu, wizkid10@hotmail.com.  I Jeff Bouton, yank2451@aol.com modified the script so that it will detect the AOL Browser as well as the new versions of Internet Explorer 5 and Netscape 4.61
        var version = 0;
               
if(navigator.userAgent.indexOf("AOL 5") != -1)  document.write("America Online 5.0");
else if
(navigator.userAgent.indexOf("AOL 4") != -1)  document.write("America Online 4.0");
else if
(navigator.userAgent.indexOf("AOL 3") != -1)  document.write("America Online 3.0");
else if
(navigator.userAgent.indexOf("MSIE 5") != -1) document.write("Internet Explorer 5.0");   
else if
(navigator.userAgent.indexOf("MSIE 4") != -1)  document.write("Internet Explorer 4.0");
else if
(navigator.userAgent.indexOf("MSIE 3") != -1)  document.write("Internet Explorer 3.0!");
else if
(navigator.userAgent.indexOf("Mozilla/5.0") != -1)  document.write("Netscape 5 Beta");
else if
(navigator.userAgent.indexOf("Mozilla/4.7") != -1)  document.write("Netscape 4.7");
else if
(navigator.userAgent.indexOf("Mozilla/4.61") != -1)  document.write("Netscape 4.61");
else if
(navigator.userAgent.indexOf("Mozilla/4.5") != -1)  document.write("Netscape 4.5");
else if
(navigator.userAgent.indexOf("Mozilla/4") != -1)  document.write("Netscape 4.0");
else if
(navigator.userAgent.indexOf("Mozilla/3") != -1)  document.write("Netscape 3.0");
else if
(navigator.userAgent.indexOf("Mozilla/2") != -1)  document.write("Netscape 2");
else if
(navigator.userAgent.indexOf("MSIE 4.5") != -1)  document.write("Microsoft Internet Explorer 4.5 for Macintosh");
else if
(navigator.appName=="WebTV Internet Terminal") document.write("WebTV Browser");
else if
(navigator.appName != "Microsoft Internet Explorer" && navigator.appName != "Netscape") document.write("You are not running IE, Netscape, AOL, or WebTV");               
else version = 8;
        // -->
</script>
</td>
</tr>
<tr>
<td BGCOLOR="#000099"><font color="#FFFFFF">The Application code of your
browser is:</font></td>
<td BGCOLOR="#999999"><script>
document.write(navigator.appCodeName)
</script>
<script>
<!--
         var version = 0;
                 if
(navigator.userAgent.indexOf("Mozilla/5.0") != -1)  document.write("5.0");
else if
(navigator.userAgent.indexOf("Mozilla/4.7") != -1)  document.write("4.7");
                else if
(navigator.userAgent.indexOf("Mozilla/4.61") != -1)  document.write("4.61");
else if
(navigator.userAgent.indexOf("Mozilla/4.5") != -1)  document.write("4.5")
                else if
                (navigator.userAgent.indexOf("Mozilla/4") != -1)  document.write("4.0");
                else if
                (navigator.userAgent.indexOf("Mozilla/3") != -1)  document.write("3.0");
                else if
                (navigator.userAgent.indexOf("Mozilla/2") != -1)  document.write("2.0");
                else document.write("Undetermined");

        // -->
</script>
</td>
</tr>
<tr BGCOLOR="#999999">
<td BGCOLOR="#000099"><font color="#FFFFFF">The Language of Your Browser
is:</font></td>

<td><script language="javascript">document.write(navigator.browserLanguage)</script>
</td>
</tr>

<tr><td BGCOLOR="#000099"><font color="#FFFFFF">You just arrived at this page from the URL:</td>
<td BGCOLOR="#999999"><Script Language="JavaScript">
<!--
document.write("(  "+ document.referrer +" )" )
//-->
</script></td></tr>
<td BGCOLOR="#000099"><font color="#FFFFFF">Your Javascript Version:</td>
<td BGCOLOR="#999999"><SCRIPT LANGUAGE="JavaScript">
<!-- Begin
document.write("" + jsver + "")
// End -->
</SCRIPT>
</td>
</tr>
<tr BGCOLOR="#999999">
<td BGCOLOR="#000099"><font color="#FFFFFF">Cookies:</font></td>

<td><script language="javascript">
if (navigator.appName=="Microsoft Internet Explorer") {
if (navigator.cookieEnabled==true) {
document.write("Are enabled on your system.")
}
else
{document.write("Are not enabled on your system.")
}
    }
else
document.write("Netscape won't allow detection!!")
</script>
</td>
</tr>
<form name=form>
<tr>
<td BGCOLOR="#000099"><font color="#FFFFFF">
Java Enabled:</td>
<td BGCOLOR="#999999"><input type=text size=3 maxlength=3 name=java></td>
<tr>
<td BGCOLOR="#000099"><font color="#FFFFFF">
Host/IP:</td>
<td  BGCOLOR="#999999"><input type=text size=50 maxlength=100 name=hostip></td>
</tr>
<tr>
<td BGCOLOR="#000099"><font color="#FFFFFF">Current Resolution:</td>
<td BGCOLOR="#999999"><input type=text size=4 maxlength=4 name=width>
x <input type=text size=4 maxlength=4 name=height></td>
</tr>
<tr>
<td BGCOLOR="#000099"><font color="#FFFFFF">
Max Resolution:</td>
<td BGCOLOR="#999999"><input type=text size=4 maxlength=4 name=maxwidth>
x <input type=text size=4 maxlength=4 name=maxheight></td>
</tr>
<tr>
<td BGCOLOR="#000099"><font color="#FFFFFF">
Color Depth:</td>
<td BGCOLOR="#999999"><input type=text size=2 maxlength=2 name=colordepth> bit</td>
</tr>
<tr>
<td BGCOLOR="#000099"><font color="#FFFFFF">
Number of Colors:</td>
<td BGCOLOR="#999999"><input type=text size=8 maxlength=8 name=color></td>
</tr>
<tr>
<td BGCOLOR="#000099"><font color="#FFFFFF">
Anti-aliasing fonts:</td>
<td BGCOLOR="#999999"><input type=text size=3 maxlength=3 name=fonts></td>
</form>
<tr><td>
</table>

分享到:
评论

相关推荐

    显示您是本贴第XX个浏览者插件 for Discuz!7.0.rar

    插件的核心功能在于,在用户查看帖子时,会显示“您是本贴第XX个浏览者”的提示信息,这一创新设计巧妙地满足了人们的好奇心和竞争心理。当用户看到自己是第一个或少数几个浏览帖子的人时,可能会产生一种成就感,...

    新闻发布系统(asp.net)

    其中,后台管理对新闻作了详细的分类,前台以分类形式显示新闻的详细信息,满足了人们浏览新闻时分类查看新闻信息的要求,同时前台还提供查询新闻信息功能,方便浏览者查找相关的新闻信息。 本实例实现的具体功能...

    电信设备-信息显示装置、信息显示方法及信息显示程序的记录介质.zip

    本压缩包包含了一个名为“信息显示装置、信息显示方法及信息显示程序的记录介质.pdf”的文件,它可能详细阐述了在电信设备中如何实现高效的信息呈现。 首先,我们要理解信息显示装置。在电信设备中,这些装置可能...

    自己写的一个简单的Jquery分页(鼠标移上去显示详细信息)比较经典使用哦

    本项目“自己写的一个简单的Jquery分页(鼠标移上去显示详细信息)”正是利用了Jquery的强大功能来实现一个动态且交互性强的分页组件。 首先,我们需要了解Jquery的基本使用。Jquery的核心是选择器,通过选择器我们...

    电信设备-包括图像信息显示设备的通信终端、图像信息显示方法及图像信息显示程序.zip

    文件"包括图像信息显示设备的通信终端、图像信息显示方法及图像信息显示程序.pdf"很可能是详细阐述这些技术的学术论文或技术文档,对于研究者和工程师来说,是深入了解和学习这一领域的宝贵资源。

    查看视频 的 详细信息软件

    MediaInfo能够解析多种媒体文件格式,显示包括编码、流、轨道在内的详细信息,是查看视频详细信息的理想选择。 MediaInfo的特点和使用方法包括: - **多平台支持**:MediaInfo可在Windows、macOS和Linux等多种操作...

    点击列表某个字段的链接,在当前页弹出一个窗口显示详细信息

    标题 "点击列表某个字段的链接,在当前页弹出一个窗口显示详细信息" 描述的是一个常见的Web交互设计,用户在浏览列表数据时,通过点击某条记录中的特定字段(如ID或名称),页面会在不离开当前上下文的情况下,弹出...

    电信设备-一种显示页面位置浏览信息的方法和装置.zip

    此压缩包“电信设备-一种显示页面位置浏览信息的方法和装置.zip”内包含的文件“一种显示页面位置浏览信息的方法和装置.pdf”,详细阐述了这一创新的技术解决方案。 首先,我们要理解的是,页面位置浏览信息通常指...

    JQ输入时间并欢迎

    标题“JQ输入时间并欢迎”可能指的是一个基于JavaScript库jQuery(JQ)实现的交互式功能,它允许用户输入时间后显示欢迎信息。在这个场景中,我们可以详细探讨以下几个相关知识点: 1. **jQuery库**:jQuery是一个...

    大神偏方医疗信息网站系统毕业课程源码设计+论文+开题报告

    (3)偏方信息查询功能:在前台浏览者输入偏方标题或内容关键字,可以查询到与之相关的偏方信息,查询结果分页显示。 (4)偏方信息评论功能:用户可以对偏方信息的效果进行评论。 (5)网站公告信息查看功能:浏览者可以...

    最新RIPRO主题美化-详细页标题栏显示头像+作者+发布时间+浏览量.txt

    根据文件标题“最新RIPRO主题美化-详细页标题栏显示头像+作者+发布时间+浏览量”以及描述中的信息,我们可以了解到本次美化的具体需求是让RIPRO主题在文章详情页的标题栏部分显示更多的信息元素,包括: 1. **头像*...

    电信设备-信息显示方法、装置及存储介质.zip

    《电信设备-信息显示方法、装置及存储介质》是一份重要的技术文档,主要涉及的是通信领域中的信息处理和显示技术。这份资料的核心内容可能涵盖了如何有效地在电信设备中设计和实现信息显示,以及如何利用特定的存储...

    水果商城网站 v1.0

    详细功能:一、系统前台功能特色功能:仿58同城强大的产品相册上传功能,产品放大功能,产品相册功能1、菜单导航模块划分合理的导航模块使浏览者快速地查找自己需要的产品信息,提高商品购买率。2、商城动态及公告...

    C#物流信息发布平台

    ... ...关于会员信息审核的具体方法请参考2.3节。...(5)如果会员想对自己的信息...货源信息页中显示了所有的货源信息,所有网站浏览者都可以查看此页中的货源信息。单击“详细信息”超链接,可以看到此货源信息的详细信息。

    简单的C#版本DICOM影像显示源码

    这个“简单的C#版本DICOM影像显示源码”是一个专门为初学者设计的学习资源,旨在帮助他们理解如何在C#环境下处理和显示DICOM图像。 首先,我们来详细了解一下DICOM标准。DICOM不仅包含了图像数据,还包含患者信息、...

    PHP分页显示制作详细讲解.pdf

    分页可以帮助用户更轻松地浏览内容,避免一次性加载过多信息导致页面加载缓慢或用户界面过于拥挤。 描述中提到的“分页显示是一种非常常见的浏览和显示大量数据的方法”,这是对分页功能的基本描述。它强调了分页在...

    新闻发布系统(asp.net+sqlserver)

    其中,后台管理对新闻作了详细的分类,前台以分类形式显示新闻的详细信息,满足了人们浏览新闻时分类查看新闻信息的要求,同时前台还提供查询新闻信息功能,方便浏览者查找相关的新闻信息。 本实例实现的具体功能...

    无忧购物系统ASP专业版 v2018.10.23

    该模块通过与浏览者的交互,记录浏览者的基本信息,通过后台审核确定其信息的有效性。 5、商品分类显示模块 商品分门别类、分层次展示不仅方便浏览者迅速找到自己的目标商品,同时增强了网站的亲和力。该模块是...

    无忧购物系统ASP通用版 v2018.12.12

    该模块通过与浏览者的交互,记录浏览者的基本信息,通过后台审核确定其信息的有效性。 5、商品分类显示模块 商品分门别类、分层次展示不仅方便浏览者迅速找到自己的目标商品,同时增强了网站的亲和力。该模块是...

Global site tag (gtag.js) - Google Analytics