You can do this by using a server side language. Before you go WHAT?! let me explain a
HTML only way.
Anchors. These are positions in
HTML that you specify. FE- mypage.com#1 This will make the page go to the anchor named 1. So on your listings each listing would need an anchor. To code an anchor you do this:
- Code: Select all
<a name="1">Listing 1</a>
Now on your Return to listings you can use the ID of the listing your returning back to.
- Code: Select all
<a href="gallery2.html#1">Return to Listing</a>
This will take you back to the exact page and listing that they left. Make sure you change the numbers to match each listing and that you change the pages to the correct page.
To use server side code you'd take all those pages you made and end up with only 2. One page would display all your listings, the other page would display whatever was clicked. It would save you a LOT of work to learn
PHP or
ASP to do this. This is some very basic stuff that you could learn and make it even easier for you to maintain.