Thread: Slide Show
View Single Post
Old Mar 26th, 2008, 6:32 AM   #3
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,435
Rep Power: 8 Ooble is on a distinguished road
Re: Slide Show

I would use ASP.NET to tell the JavaScript what the file names are. Not sure about ASP, but this is how I'd do it in PHP:
php Syntax (Toggle Plain Text)
  1. <?php
  2. $imageDir = 'images/';
  3. $imagePaths = scandir($imageDir);
  4. echo 'var imagePaths = Array ("' . implode('", "', $imagePaths) . '")';
  5. ?>
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote