As far as I know CSS is not meant for, nor capable of modifying, activating or defining URL's Meaning that CSS cannot be used to run through the images.
CSS is used to define styles, HTML is used to define structure, and you need a programming language to do anything but the most basic functionality. So either JavaScript, Flash, PHP, etc
Note: I think Trache meant that CSS can be used to insert an image (statically) into a page (for example, a background for the body, or a table).
CSS cannot however change the image once it is there.
To change the image, you need to reload the page, with a CSS file that uses a different image in the same place.
Personally, I think that this is not such a nice way of switching images.
/end Note
I agree with Trache's comments on javascript security and common annoyances, but I don't know what the statistics are for users with javascript enabled/disabled.
To be most compatible, a server-side solution is best. In your case: generating all pages with PHP.
Brewery.php would then compose a list of all images, output the page with the current image (id2), and depending on where that image is in the list, display the x/12 and < > things.
The brackets < > would then directly link back to a new page with id2+1 or id2-1.
The downside compared to JavaScript is the fact that the complete page will be reloaded for each image. The plus side is that all gallery logic is server-side and in the same language, making maintenance/debugging etc easier.
__________________
"Do not kill. Do not rape. Do not steal. These are principles which every man of every faith can embrace. "
- Murphy MacManus (Boondock Saints)
|