Carl Fisher wrote:
That's pretty slick Mike- good find! The only trouble I see with it, though, is that the outer "wrapper" is PHP. Not that there's anything wrong with that by itself, but this little Flash diddie we've got is part of the main page template, so incorporating this script would mean changing the template (a pain), plus changing the name of every file on the site to a .php extension so that it would always be able to run. The advantage of a Flash solution is that we should just be able to replace the old & busted sponsors.swf file with the new hotness one and be on our way.
I understand the limitations - and I understand why you'd want to avoid PHP. Out of curiosity I'm curious how else this could work with javascript -- apparently the authors of that script use PHP for server-side file access. They have a version of the script with hard-coded file names which doesn't need PHP.
Is there any other client-side way for javascript to get a list of file names from a directory?
I'm also worried that flash will have the same problem -- getting a DIR list is a server-side operation. Dunno anything about flash though, maybe it's all good.
Could a sponsors.txt file be posted somewhere on the site where you'd need to manually make a list of the files in the /sponsors/ directory, and do a simple read from that txt file to build the javascript array of file names?
Like I said, just curious, and I have almost zero web programming experience. The funny thing is, I have learned a fair amount of javascript working on automating some of my datamining queries and output files at work, and now this has me interested enough to dabble in web scripting

_________________
Mike Whitney
whit32@gmail.com, 919-454-5445
V10, V8, V8t, I6, I6, V6, F4t, I4, I4, I4, I4, I2, 1, 1