If you get some time to breathe, I have been struggling with this one, which I know I'm 90% there but can't get it to 100%. it may be similar to the one just fixed above. This has to do with Next and Previous arrow keys combining what is coming from the php recordset and JavaScript to move thru the pictures for each one. I have and indexg6.php which moves from box to box instead of each one within the box.(I also tried indexg7, g8, g9) but I think the indexg6.php is the one I'd go back to. indexg7.php has more code but it's displaying all picts in each box instead of one at a time.