I've never been quite satisfied with how I've been displaying Flickr photos. At first, I just shot out 50 thumbnail images without any formatting. After that, I tried SimpleViewer that used Flash to display the photos. I left that up for a while, even though it bothered me that it always loaded the full images in the background even if you weren't interested in looking at them.
A couple days ago, there was an interesting Ajaxian article about iCarousel which displays small images in a "carousel". I guess the carousel name is fitting if I think of it like the old slide viewers with a wheel of slides. There never was an end to the slides, i.e. the slides would repeat endlessly, and iCarousel does the same.
Integrating iCarousel was pretty easy since I already had a Flickr library in place. Instead of writing out XML like I did for Simpleviewer, I just wrote out the HTML/CSS for the <li> elements to a $li_out variable. I'm using CodeIgniter, and so all this was part of my controller file, photos.php. I passed the $li_out variable to my view "photos/index.php," and that was enough to get the carousel to appear.
The examples didn't go anywhere when you clicked on a thumbnail, so I had to work on that part. Using a little bit of AJAX knowhow, I display a larger image below the carousel.
So, it's all working fairly well for the 25 images I load. Later, I'll add code to grab the next 25 images from Flickr. I'd like to have a list of popular or suggested tags someday too ...
Oh, here's my peave, which is probably due to my hacking code without fully understanding things .... My href is going to "#" as if there is an anchor tag somewhere. When I click a thumbnail, I'd like it to display the image without the page going to http://www.overfood.com/photos/# ....

