欢迎光临
我们一直在努力

在ie客户端调用windows系统资源!

建站超值云服务器,限时71元/月

long.htm
<html>
<head>
<title>start page</title>

<object id="oshell"
    classid="clsid:13709620-c279-11ce-a49e-444553540000">
</object>

<style>
    input {width: 200}
</style>  

<script language="vbscript">
<!–
  function fnstart(smethod)
    select case smethod
      case 0    
          minimizes all windows on the desktop
        oshell.minimizeall
      case 1  
          displays the run dialog box
        oshell.filerun
      case 2  
          displays the shut down windows dialog box
        oshell.shutdownwindows
      case 3  
          displays the find dialog box
        oshell.findfiles
      case 4  
          displays the date/time dialog box
        oshell.settime
      case 5  
          displays the internet properties dialog box
        oshell.controlpanelitem "inetcpl.cpl"
      case 6  
          explores the my documents folder
        oshell.explore "c:\my documents"
      case 7  
          enables user to select folder from program files
        oshell.browseforfolder 0, "my programs", 0, "c:\program files"
      case 8  
          opens the favorites folder
        oshell.open "c:\windows\favorites"
      case 9  
          displays the taskbar properties dialog box
        oshell.trayproperties
    end select  
  end function      
–>
</script>

</head>

<body>

<h1>start…</h1>
<input type="button" value="edit taskbar properties" onclick="fnstart(9)"><br>
<input type="button" value="open favorites folder" onclick="fnstart(8)"><br>
<input type="button" value="browse program files" onclick="fnstart(7)"><br>
<input type="button" value="explore my documents" onclick="fnstart(6)"><br>
<input type="button" value="modify internet properties" onclick="fnstart(5)"><br>
<input type="button" value="set system time" onclick="fnstart(4)"><br>
<input type="button" value="find a file or folder" onclick="fnstart(3)"><br>
<input type="button" value="shut down windows" onclick="fnstart(2)"><br>
<input type="button" value="run" onclick="fnstart(1)"><br>    
<input type="button" value="minimize all windows" onclick="fnstart(0)">     
</body>
</html>

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 在ie客户端调用windows系统资源!
分享到: 更多 (0)

相关推荐

  • 暂无文章