首 页 ASP ASP.NET PHP JSP Ajax DIV+CSS JavaScript XML C#
MySQL MSSQL Access Oracle Linux Server 电脑技巧 网络安全 建站经验 其它

巧用网页显示硬盘内容

整理日期:2007年08月19日 【字体:

您听说过网页也能用来显示硬盘内容吗?您肯定不信,因为大多数情况下,我们都是通过“我的电脑”和“资源管理器”来浏览硬盘数据。现在就让我们来看看如何用下面一小段“神奇”的网页代码实现硬盘E盘数据的显示功能。你也一定等急了,很想知道这一切是如何发生的。其实非常简单,只需在网页的<head>和</head>中加入如下网页源代码即可实现。相信我,你也能做到的。

以下是引用片段:
<script language=javascript>
<!--//EAB22AC3-30C1-11CF-A7EB-0000C05BAE0B
if (navigator.appName=='Microsoft Internet Explorer') {
document.write('<h3>E盘内容如下:</h3>')
document.write('<object id="browserlcons" classid="clsid:8856F961-340A-11D0-A96B-00C04FD705A2" align="baseline" border="4" width="600" height="300">')
document.write('<param name="Location" value="e:">')
document.write('<param name="AlignLeft" value="1">')

伊图教程网[www.etoow.com]
http://www.etoow.com/html/2007-08/1187489499.html
document.write('<param name="AutoSize" value="0">')
Tags:
巧用网页显示硬盘内容
'http://www.etoow.com/html/2007-08/1187489499.html
1
 
信息搜索
  
联系我们关于本站广告服务设为首页 收藏本站友情链接网站地图
Copyright © Etoow.com Inc. All Rights Reserved