Quote:
Originally Posted by Silvy
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.
|
That is exactly what I'm thinking of Silvy
I guess I should start a new thread (or not if we're still going for longest single post records

)
Is this a realitively easy approach? I don't mind the server load since the site does not have heavy traffic. I'm more concerened with good presentation and good code that can be used long term.
How do I go about this

(Arch13 figures he may be getting some sort of bill from
Silvy soon )
