Här nedan har jag samlat lite bilder ifrån mina tävlingar och annat som har anknytning till speedski.
<%
'#######Antal thumbs på rad#######
Antal = 5
'#######Mappen som du vill lista bilder i#######
MappNamn = "/galleri"
'#######Bredd och höjd på thumbbilden#######
height = "75"
width = "75"
%>
<%Set Mappkoll = Server.CreateObject("Scripting.FileSystemObject")
Set Mapp = Mappkoll.GetFolder(Server.MapPath(MappNamn))
Set MyDrive = Mapp.subFolders%>
Välj din mapp
<%If Request.QueryString("visa") = "bilder" Then
MappNamn = Request.QueryString("mapp")
Set Mappkoll = Server.CreateObject("Scripting.FileSystemObject")
Set Mapp = Mappkoll.GetFolder(Server.MapPath(MappNamn))%>
<%If Mapp.Files.Count = 0 Then%>
Inga bilder finns
<%Else
x=0
For Each File In Mapp.Files
If x = Antal Then
Response.Write "
"
x = 0
End If%>
<%X=X+1
Next
If x Mod Antal <> 0 Then
For i = 1 To Antal - x Mod Antal%>