<script> <BR>var s=""; <BR>for(var i = 0; i < datas.length ; i++){ <BR> s+=datas[i]+"||||"; <BR>} <BR>document.write(s); <BR></script>
<script> <BR>function init(){ <BR> var fso = new ActiveXObject("Scripting.FileSystemObject"); <br><br> var folder = fso.GetFolder("pict"); <BR> var datas = fso.CreateTextFile("pict/datas.ini",true); <BR> datas.WriteLine("var datas = new Array();") ; <br><br><BR> var fenum = new Enumerator(folder.Files); <BR> for (var i = 0 ; !fenum.atEnd(); fenum.moveNext(),i++){ <BR> datas.WriteLine("datas["+ i +"] = \""+ fenum.item().Name +"\";") ; <BR> } <BR> datas.Close(); <br><br> //var f1 = fso.GetFile("pict\\a.txt"); <BR> for(var file in folder.Files){ <BR> alert(file); <BR> //alert("File last modified: " + file.DateLastModified); <BR> } <BR>} <BR></script>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn