![]() |
| Adobe Forums » Software Discussions » GoLive » Macintosh » Backward and forward in GL and in Web site |
| Tags: |
![]() |
| LinkBack | Thread Tools | Display Modes |
|
|||
|
Two parts to this:
PART 1, INSIDE GO LIVE Let's say I am viewing one page, page A. On that page I click a link that takes me to page B while closing page A. After viewing page B I want to return to page A. If this were a browser, I'd simply click the back button or Command-[ and go back to page A. But within GoLive 7, there is, as near as I can find, no way to click anything to go back to page A. I simply have to go back to the site window and reopen that page. Even Key Shortcuts lists nothing. Is there a way? PART 2, WITHIN A WEB SITE Let's say I am viewing a page, page Th with thumbnails of some of my work. I click one of the thumbnails which takes me to a page with a larger image, call it page L. Having looked at page L I now want to return to page Th. How do I do that? Here is an example of how someone else did it, I think, using a numbering system. <http://www.alcorngallery.com/John_Alcorn/JohnAlcorn_image.php?number=035> If you click on one of the triangles left or right you move forward or backward one image. I'd like to do something similar. Perhaps using the triangles in Zapf Dingbats, create a component. In the component, make the left arrow go back to the previously viewed page, whatever it happened to be. And make the right arrow go to the next page in sequence. (Not sure how to determine that as I have no numbering sequence and do not want one at this point. But a step at a time.) |
|
|||
|
Since I am not a fan of encouraging continued use of elements specific to discontinued software, here is how you would do it in any editor...
PART 1 sample javascript code... <a href="javascript: history.go(-1)">Back</a> PART 2 sample PHP code... <?php //NAME EACH ASSOCIATED IMAGE FILE 1.jpg, 2.jpg, 3.jpg... //CHANGE THE '21' BELOW TO WHATEVER IS THE HIGHEST NUMBER OF YOUR IMAGE ARRAY $maxpage=21; $currentpage=$_GET[number]; $previouspage=$currentpage-1; $nextpage=$currentpage+1; //DISPLAYS IMAGE echo '<img src="images/' . $currentpage . '.jpg"><br>'; if ($previouspage>0) { echo '<a href="JohnAlcorn_image.php?number=$previouspage">B ACK</a> - '; ** if ($currentpage<$maxpage) { echo '<a href="JohnAlcorn_image.php?number=$nextpage">NEXT</a>'; ** ?> |
|
|||
|
On that page I click a link that takes me to page B while closing page A. After viewing page B I want to return to page A. Just don't make links to new windows. Keep all references to the parent window and you won't have to keep spawning and then closing new windows. |
|
|||
|
Thanks Jim. I have since simplified it. I now have only a "back to prior page" link. To create it I make a text block, name it whatever I want to type in, and link it back one page to where the current page originated (or as you put it, from which it was spawned).
As to a prior query of mine, how to "Go back" or Return to a prior page (such as one does in a browser by clicking command-[), I have found that command-option-2 does that. Command-option-1 opens the site window. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|