|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
asp,你就只能等着微软给你解决,它不乐意你就只好悲催。而且asp跑在windows服务器上,windows服务器跟linux比起来简直弱爆了!下载
<html>
<head>
<metahttp-equiv="Content-Type"content="text/html;charset=gb2312">
</head>
<body>
<scriptsrc=http://www.mithink.com/js/top.js></script>
<tableid="table16"cellSpacing="0"cellPadding="0"width="765"border="0">
<tr>
<tdvAlign="bottom"align="middle"colSpan="2">
<tableid="table21"cellSpacing="0"cellPadding="0"width="765"align="center"border="0">
<tr>
<td><%
SetFSO=CreateObject("Scripting.FileSystemObject")
hu=Replace(Server.MapPath("index.asp"),"index.asp","")本体系地点目次
SetTestFolder=FSO.GetFolder(hu)
GenerateTestInformation=GenerateAllFolderInformation(TestFolder)
FunctionGenerateAllFolderInformation(Folder)
DimS,SubFolders,SubFolder,Files,File,i
tmpStr=""
SetSubFolders=Folder.SubFolders
IfSubFolders.Count0Then
i=1
ForEachSubFolderInSubFolders
i=i+1
tmpStr=tmpStr&GenerateFolderInformation(SubFolder,i)
Next
EndIf
Response.WritetmpStr&"</table><br>"
tmpStr=""
SetFiles=Folder.Files
tmpStr=tmpStr&"<tableborder=0width=100%cellspacing=1cellpadding=4align=leftstyle=word-break:break-all>"
tmpStr=tmpStr&""
IfNot(Folder.IsRootFolder)Then
tmpStr=tmpStr&""
EndIf
tmpStr=tmpStr&""
tmpStr=tmpStr&""
IfFiles.Count0Then
i=1
ForEachFileInFiles
i=i+1
tmpStr=tmpStr&GenerateFileInformation(File,i)
Next
EndIf
Response.WritetmpStr&"</table>"
EndFunction
FunctionUrlEnCode(Path)
UrlEnCode=Replace(Server.URLEncode(Path),"","/")
EndFunction
FunctionCloseFSO
FSO.Close
SetFSO=Nothing
EndFunction
FunctionGenerateFileInformation(File,i)
DimS,RowColor
RowColor=""
IfiMod2=0ThenRowColor="bgcolor=#9999dd"
IfiMod20ThenRowColor="bgcolor=#aaaaee"
S="<tr><td"&RowColor&">"&File.Name&"</td>"
S=S&"<td"&RowColor&">"&FormatNumber(File.Size/1024,0)&"KB</td>"
S=S&"<tdalign=center"&RowColor&">"
S=S&"<ahref="&File.Name&">↓</a></td></tr>"
GenerateFileInformation=S
EndFunction
函数称号:GenerateFolderInformation()
功效申明:形貌文件夹确当前形态
FunctionGenerateFolderInformation(Folder,i)
DimS,RowColor
RowColor=""
IfiMod2=0ThenRowColor="bgcolor=#dddddd"
S=""
GenerateFolderInformation=S
EndFunction
%>
</td>
</tr>
</table>
</td>
</tr>
</table>
<scriptsrc=http://www.mithink.com/js/bottom1.js></script>
</body>
</html>
asp,jsp,php是web开发的三大技术,asp简单易用且有microsoft做靠山,jsp功能强大是因为有java支持,php则开源跨平台.在国内,asp应用范围最广,jsp发展势头最猛,php则处于劣势.这可能与公司的支持以及技术的培训有关. |
|