That looks a lot like getpics.php (text version):
http://www.dynamicdrive.com/dynamici...etpics.php.txt
which outputs an array like so (active PHP version):
http://www.dynamicdrive.com/dynamici...ry/getpics.php
As you can see in the active version the date and time are in the second part of each array contained in the main galleryarray entry for each image (galleryarray[#][1]) which could then be parsed for hour, ex:
Code:
<script type="text/javascript">
var galleryarray=new Array();
galleryarray[0]=["jag1.jpg", "Aug 11, 2007 17:00:05"];
galleryarray[1]=["jag10.jpg", "Aug 11, 2007 17:00:07"];
galleryarray[2]=["jag11.jpg", "Aug 11, 2007 17:00:08"];
galleryarray[3]=["jag12.jpg", "Aug 11, 2007 17:00:08"];
galleryarray[4]=["jag13.jpg", "Aug 11, 2007 17:00:09"];
galleryarray[5]=["jag14.jpg", "Aug 11, 2007 17:00:10"];
galleryarray[6]=["jag2.jpg", "Aug 11, 2007 17:00:10"];
galleryarray[7]=["jag3.jpg", "Aug 11, 2007 17:00:11"];
galleryarray[8]=["jag4.jpg", "Aug 11, 2007 17:00:12"];
galleryarray[9]=["jag5.jpg", "Aug 11, 2007 17:00:13"];
galleryarray[10]=["jag6.jpg", "Aug 11, 2007 17:00:14"];
galleryarray[11]=["jag7.jpg", "Aug 11, 2007 17:00:17"];
galleryarray[12]=["jag8.jpg", "Aug 11, 2007 17:00:18"];
galleryarray[13]=["jag9.jpg", "Aug 11, 2007 17:00:18"];
alert(galleryarray[0][1].replace(/^[^:]* (\d+):.*$/, '$1'));
</script>
In a similar fashion one could get the year, etc. However, this information is also available on the server side, and it might be better to get at it in that fashion. If so, ask in the PHP forum.
Bookmarks