Using ArrayToLinks()


The files, folders and images from the "things" folder:

Files from the "things" folder
things/bread is dangerous.txt
things/cutecat.jpg
things/doggone.jpg
things/Englihs_in_china.ppt
things/here_kitty.mpg
things/programming humor.txt

Folders from the "things" folder

Images from the "things" folder
things/cutecat.jpg
things/doggone.jpg

Links from the file "Links.txt":

http://www.jake.dk/programmering/asp
http://www.dotnetteacher.dk
http://www.javateacher.dk
http://www.google.com
http://www.imdb.com

Contents of default.asp :
<!--#include file ="../../jakes_IO.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="da">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Example use of the ArrayToLinks function</title>
    <link rel="stylesheet" type="text/css" href="/jake.css">
</head>
<body>
    <div align="center"><h1>Using ArrayToLinks()</h1></div>
    <br>

    <p><b>The files, folders and images from the "things" folder:</b><br>
    <span style="display:block;border:1px solid black;background:#DFE;padding:10px;font-size:11px;">
    <p><b>Files from the "things" folder</b>
    <%=ArrayToLinks(getFilesFromFolder("things"))%>

    <p><b>Folders from the "things" folder</b>
    <%=ArrayToLinks(getFoldersFromFolder("things"))%>

    <p><b>Images from the "things" folder</b>
    <%=ArrayToLinks(getImagesFromFolder("things"))%>
    </span>

    <p><b>Links from the file "Links.txt":</b><br>
    <span style="display:block;border:1px solid black;background:#DEF;padding:10px;font-size:11px;">
    <%=ArrayToLinks(getFileAsArray("links.txt"))%>
    </span>

    <p><b>Contents of default.asp :</b><br>
    <span style="display:block;border:1px solid black;background:#FDE;padding:10px;font-size:11px;">
    <% response.write(stringToHTML (GetFileContents("default.asp")))%>
    </span>

</body>
</html>