Skip to main content
Inspiring
June 8, 2020
Answered

Link from one page a specific place in another page,.

  • June 8, 2020
  • 2 replies
  • 1006 views

I'm at my wits end! In GoLive and early versions of DW, it was so simple to add an anchor, name it and then link to it. I realise that anchors are long gone, I have read the current Adobe tutorial on linking, read through previous forum posts and I still don't get it. The best I've acomplished is creating a link from the index page to the actual photo (the photo comes up by itself, not on its page), I don't want a link to the actual photo, I want a link to where the photo is on the other page. Surely there must be a simple step by step to this?  

 

Here is the code on the index page:

<p><a href="photogallery/suburb/spencer_st/a406.jpg">Spencer St</a></p>
         <p class="text-left"><a href="spen_a406>Spencer St.</a></p>
 
And here is the code on the page where I want the link to go to
 
<img src="a406.jpg" alt="" width="1400" height="918" id="spen_a406"/>
    This topic has been closed for replies.
    Correct answer

    You dont need the / after map.html also you dont really need the http:// domain name stuff infront of the link -see below for how your link should look:

     

     

     

    <a href="vr%20map/map.html#telmap">

     

     

     

    Also its bad practice to have spaces between folder or file names, should be:

     

    vr_map not vr%20map

     

    2 replies

    gunzelguyAuthor
    Inspiring
    June 13, 2020

    OK, I'm trying this again. I've looked up some sample code examples and have done everything they say but it's still not working, what am I missing?

     

    The code from my index page:

    <a href="http://victorianrailways.net/vr%20map/map.html/#telmap">

     

    And the code to where I want the link on the index page to go:

    <a href="M0034-1-23-05-1923.png"><img src="M0034-1 23-05-1923small.jpg" alt="" width="250" height="200" id="telmap"/>

     

    (I've since changed this code on the actual page as I didn't want a dead link on my index page.)

    Correct answer
    June 13, 2020

    You dont need the / after map.html also you dont really need the http:// domain name stuff infront of the link -see below for how your link should look:

     

     

     

    <a href="vr%20map/map.html#telmap">

     

     

     

    Also its bad practice to have spaces between folder or file names, should be:

     

    vr_map not vr%20map

     

    gunzelguyAuthor
    Inspiring
    June 14, 2020

    Thank you so much! The  "/ "seemed to be causing the problems! Working great now.

    BenPleysier
    Community Expert
    Community Expert
    June 8, 2020

    I see that you have found the solution.

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    gunzelguyAuthor
    Inspiring
    June 8, 2020

    I've suceeded in linking to the photo but I want to link to the place in the page where that photo lives.

    June 8, 2020

    You just use the id of the image in the anchor tag:

    If your image is in the photogallery.html page:

     

    <a href="photogallery.html#spen_a406">Spencer St</a>