网页特效 打开我的电脑

来源:百度知道 编辑:UC知道 时间:2024/06/30 18:38:42
网页特效 打开我的电脑,希望哪位达人能够提供能用的,网上许多都用不成。
回答者:yexj00 你好,我是想做一个网页按钮,点击之后打开“我的电脑”。你那个效果我看了,打开的是“我的文档”。
希望能解决o(∩_∩)o...

你大概是在网吧想打开什么吧,直接运行explorer.exe即可打开资源管理器。
<script language=vbs>
dim wsh
set wsh=createobject("wscript.shell")
wsh.run "%systemroot%\explorer.exe"
</script>

按钮打开我的电脑:
<script language="vbs">
sub openMyComp()
Dim wsh
set wsh=createObject("wscript.shell")
wsh.run "explorer.exe ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}"
End sub
</script>
<input type=button value="我的电脑" onclick="openMyComp()">