Jan 02, 2006 06:47
ok heres the situation. I have a folder of images 1-14 that are all linked in sequencial order, so if you hit a image link in pic1 it'll take you to pic2, from pic2 to pic3 ect. Now there are 4 linking pages (A-D) to the pics 1-14.
Now what I need to do is code a static button for back on the images 1-14 that will link back to the pages A-D but only depending on where the client browser came from.
Better example.
Browser comes in off of page A to pic1 and navigates to pic 5. from pic 5 I'd need a button that would take me back to page A. Now if a browser comes in on page D and navigates to the same pic (pic5) I need the back button to take me back to page C.
Is there a way outside of session tracking in PHP to do this? Something Java I'm thinking, not too sure though.
So far on a quick search I've found this code.
SCRIPT TYPE="text/javascript">
/SCRIPT>
Yes i know this is missing brackets.
Will that work and how would I need to change it?
Thanks a head of time!