[jQuery] How to load picture after picture (take 2)

2007-04-14 Thread wyo
I've now reworked my sample and it finally loads picture after picture yet it doesn't show them. My code is now var files = new Array(); files = ?PHP echo $json-encode ($files) ?; var pos = 0; (pos 0)? $('#prev').show(): $('#prev').hide(); (pos (files.length-1))?

[jQuery] How to load picture after picture

2007-04-10 Thread wyo
I currently retrieve all pictures of my gallery with the following PHP code $files = getFiles ($d); if (count ($files) 0) { foreach ($files as $key = $f) { echo img align=\center\ src=\$f\brbr; } } simply adding picture after picture. But since there will be many more