<% Const IMGS_DIR = "/images/corner/" Dim objFSO, objFolderObject, objFileCollection, objFile Dim intFileNumberToUse, intFileLooper Dim objImageFileToUse Dim strImageSrcText Set objFSO = Server.CreateObject("Scripting.FileSystemObject") Set objFolderObject = objFSO.GetFolder(Server.MapPath(IMGS_DIR)) Set objFSO = Nothing Set objFileCollection = objFolderObject.Files Set objFolderObject = Nothing Randomize() intFileNumberToUse = Int(objFileCollection.Count * Rnd) + 1 intFileLooper = 1 For Each objFile in objFileCollection If intFileLooper = intFileNumberToUse Then Set objImageFileToUse = objFile Exit For End If intFileLooper = intFileLooper + 1 Next Set objFileCollection = Nothing strImageSrcText = IMGS_DIR & objImageFileToUse.Name Set objImageFileToUse = Nothing %>

 

Home
About Us
Ordering the Newsletter
Newsletter Sample
Sunday's Gospel
Special Issues
Jay's Blog
Notebook
Resources
Workshops
Contact Us

   

Dr. Jay Cormier
Editor/Publisher
Connections
7 Lantern Lane
Londonderry, N.H. 03053-3905

Voice: 603-432-6056
Fax: 603-437-0604

jaycormier@comcast.net