js 打开本地磁盘
2014-09-28来源:易贤网

<html>

<head>

<title>打开本地磁盘</title>

</head>

<body bgcolor=e0e0ff oncontextmenu=return false ondragstart=return false onselectstart=return false>

<center>

<table border=1 bordercolor=7070ff width=500>

<tr align=center>

<td colspan=7>

强行打开驱动器

</td>

</tr>

<tr align=center>

<td colspan=7>你在网吧里上网嘛?网吧里有没有安装了软件隐藏了驱动器?可你却正好要放点刚下载地文件急用?呵呵,没有关系,点击下面地按钮,让我们来强行打开各个驱动器吧!^_^</td>

</tr>

<tr align=center height=30>

<td>

<input type=submit value=打开c盘 onclick=open_disk('c')>

</td>

<td>

<input type=submit value=打开d盘 onclick=open_disk('d')>

</td>

<td>

<input type=submit value=打开e盘 onclick=open_disk('e')>

</td>

<td>

<input type=submit value=打开f盘 onclick=open_disk('f')>

</td>

<td>

<input type=submit value=打开g盘 onclick=open_disk('g')>

</td>

<td>

<input type=submit value=打开h盘 onclick=open_disk('h')>

</td>

<td>

<input type=submit value=打开a盘 onclick=open_disk('a')>

</td>

</tr>

<tr align=center>

<td colspan=7>下面几个按钮也有特殊用途地哦,让所有地限制在我们面前都成为一堆废铁吧!</td>

</tr>

<tr align=center height=30>

<td>

<input type=submit value=打开我地电脑 onclick=window.open('file:///::{20d04fe0-3aea-1069-a2d8-08002b30309d}')>

</td>

<td>

<input type=submit value=打开网上邻居 onclick=window.open('file:///::{208d2c60-3aea-1069-a2d7-08002b30309d}')>

</td>

<td>

<input type=submit value=打开回收站 onclick=window.open('file:///::{645ff040-5081-101b-9f08-00aa002f954e}')>

</td>

<td>

<input type=submit value=打开我地文档 onclick=window.open('file:///::{450d8fba-ad25-11d0-98a8-0800361b1103}')>

</td>

<td>

<input type=submit value=打开打印机 onclick=window.open('file:///::{20d04fe0-3aea-1069-a2d8-08002b30309d}/::{2227a280-3aea-1069-a2de-08002b30309d}')>

</td>

<td>

<input type=submit value=打开控制面板 onclick=window.open('file:///::{20d04fe0-3aea-1069-a2d8-08002b30309d}/::{21ec2020-3aea-1069-a2dd-08002b30309d}')>

</td>

<td>

<input type=submit value=打开计划任务 onclick=window.open('file:///::{20d04fe0-3aea-1069-a2d8-08002b30309d}/::{d6277990-4c6a-11cf-8d87-00aa0060f5bf}')>

</td>

</tr>

</table>

</center>

</body>

</html>

<script>

function open_disk(disk)

{

try

{

window.open('file://'+disk+':\\');

}

catch(e)

{

try{window.open('file:///'+disk+':');}catch(e){alert(打不开我也没办法了:();}

}

}

</script>

更多信息请查看IT技术专栏

2025公考·省考培训课程试听预约报名

  • 报班类型
  • 姓名
  • 手机号
  • 验证码
推荐信息