当前位置: 网学 > 编程文档 > ASP > 正文

asp javascript在线管理

来源:Http://myeducs.cn 联系QQ:点击这里给我发消息 作者: 用户投稿 来源: 网络 发布时间: 13/06/17
se "exe": case "com": case "pif": case "bat":return "<font face=''wingdings'' class=''ItemIconStyle''>ÿ</font>";case "jpg": case "gif": case "bmp": case "tiff": case "jpeg": case "tif" : case "png" :return "<font face=''webdings'' class=''ItemIconStyle''>Ÿ</font>";case "mp3": case "wav": case"mid" :return "<font face=''webdings'' class=''ItemIconStyle''>¯</font>";default :return "<font face=''wingdings 2'' class=''ItemIconStyle''>/</font>";};};function FormatSize(nSize){if(nSize/Math.pow(1024,3)>0.9) return Math.round(nSize/Math.pow(1024,3)*100)/100 + " GB";else if(nSize/Math.pow(1024,2)>0.9) return Math.round(nSize/Math.pow(1024,2)*100)/100 + " MB";else if(nSize/1024>0.9) return Math.round(nSize/1024*100)/100 + " KB";else return "1 KB";/*nSize + " Bytes"*/};this.GetDriverList = function(){/*返回驱动器列表的数组*/var fso = this.fso;var a = new Array();var e = new Enumerator(fso.Drives);a[a.length] = new Array(bIsReady/*是否就绪*/, "<font face=''wingdings'' class=''ItemIconStyle''>y</font>", "<nobr>[Home]</nobr> <nobr>CCDM 4.51</nobr>", "", Server.MapPath("."), 20, "", "", "", "","COCOON Online Disk Manager 4.51.4714", "Producted by Cocoon Studio (www.ccopus.com)", "Coding by Sunrise_Chen");for (; !e.atEnd(); e.moveNext()){var bIsReady = false;var x = e.item();try{bIsReady = x.isReady;};catch(e){bIsReady = false;};if(bIsReady){a[a.length] = new Array(bIsReady/*是否就绪*/, GetIconByType_Driver(x.DriveType)/*图标,用于显示*/, "<nobr>" + GetTypeName(x.DriveType) + "</nobr> <nobr>(" + x.DriveLetter + ":)</nobr>"/*名称,用于显示*/, GetTypeName(x.DriveType) + "(" + x.DriveLetter + ")", x.RootFolder/*根目录*/, 16/**/, GetTypeName(x.DriveType), "<div align=right>" + FormatSize(x.TotalSize) + "</div>", "<div align=right>" + FormatSize(x.AvailableSpace) + "</div>", "", "路径: " + x.RootFolder, "类型: " + GetTypeName(x.DriveType), "文件系统: " + x.FileSystem, "卷标: " + x.VolumeName, "总容量: " + FormatSize(x.TotalSize), "剩余容量: " + FormatSize(x.AvailableSpace));};else{a[a.length] = new Array(bIsReady, GetIconByType_Driver(x.DriveType), "<nobr>" + GetTypeName(x.DriveType) + "</nobr> <nobr>(" + x.DriveLetter + ":)</nobr>", GetTypeName(x.DriveType) + "(" + x.DriveLetter + ")", x.DriveLetter + ":\\", -1, GetTypeName(x.DriveType), "", "", "", "路径: " + x.DriveLetter + ":\\", "类型: " + GetTypeName(x.DriveType));};};return a;};/*function GetDriverList;*/this.CurrentFolder = null;this.GetFolderInfo = function(sFolderSpec){if(this.CurrentFolder) return this.CurrentFolder;var fso = this.fso;var a = new Array();try{var x = fso.GetFolder(sFolderSpec);};catch(e){ShowError(e);};a[a.length] = new Array(true, "<font face=''wingdings'' class=''ItemIconStyle''>0</font>", "<span class=''ItemTitle''><nobr>" + x.name + "</nobr></span>", x.Name, x.P
  • 下一篇资讯: 查询翻页优化第1/2页
  • 网学推荐

    免费论文

    原创论文

    浏览:
    设为首页 | 加入收藏 | 论文首页 | 论文专题 | 设计下载 | 网学软件 | 论文模板 | 论文资源 | 程序设计 | 关于网学 | 站内搜索 | 网学留言 | 友情链接 | 资料中心
    版权所有 QQ:3710167 邮箱:3710167@qq.com 网学网 [Myeducs.cn] 您电脑的分辨率是 像素
    Copyright 2008-2015 myeducs.Cn www.myeducs.Cn All Rights Reserved
    湘ICP备09003080号