I want by clicking the image(represented by the cross box), a rectangle area will be expanded downward to display information(kind of toggle). How can I do that. Thanks.
when I click another image, I also want the first rectangle area will retract and the next will expand(i.e. only one rectangle area a time)
I want the similar effect here: themetrust.com/demos/reveal/#footloose , but what I really want is that the grey area to put under each row of the photos and probably expecting ajax and rails implementation.

You haven’t given much information, but one strategy you could use is to associate each clickable
imgwith a container that will show or hide:Then you could wire up an event handler for each image, retrieve the content and show it:
Also toggling an
activeclass along the way.Example: http://jsfiddle.net/k8zCU/
You might want to check out the following documentation for more effects you could use:
showfadeInslideUpanimate