-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- function BrowseFolder(){
- try{
- var Message = "请选择文件夹";
- var Shell = new ActiveXObject( "Shell.Application" );
- var Folder = Shell.BrowseForFolder(0,Message,0x0040,0x11);
-
- if(Folder != null){
- Folder = Folder.items();
- Folder = Folder.item();
- Folder = Folder.Path;
- if(Folder.charAt(Folder.length-1) != "\\"){
- Folder = Folder + "\\";
- }
- document.all.savePath.value=Folder;
- return Folder;
- }
- }catch(e){
- alert(e.message);
- }
- }
posted on 2010-08-06 17:50
末日风情 阅读(1605)
评论(0) 编辑 收藏 所属分类:
javascript