js 打開本地磁盤

字號(hào):


    <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>
    <td colspan=7>
    強(qiáng)行打開驅(qū)動(dòng)器
    </td>
    </tr>
    <tr>
    <td colspan=7>你在網(wǎng)吧里上網(wǎng)嘛?網(wǎng)吧里有沒有安裝了軟件隱藏了驅(qū)動(dòng)器?可你卻正好要放點(diǎn)剛下載地文件急用?呵呵,沒有關(guān)系,點(diǎn)擊下面地按鈕,讓我們來強(qiáng)行打開各個(gè)驅(qū)動(dòng)器吧!^_^</td>
    </tr>
    <tr 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>
    <td colspan=7>下面幾個(gè)按鈕也有特殊用途地哦,讓所有地限制在我們面前都成為一堆廢鐵吧!</td>
    </tr>
    <tr height=30>
    <td>
    <input type=submit value=打開我地電腦 onclick=window.open('file:///::{20d04fe0-3aea-1069-a2d8-08002b30309d}')>
    </td>
    <td>
    <input type=submit value=打開網(wǎng)上鄰居 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=打開打印機(jī) 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=打開計(jì)劃任務(wù) 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>