Skip navigation
epson1280
Currently Being Moderated

Need some help with anchor tags

Dec 24, 2008 10:01 AM

This is most likely very simple for most of you, but I have applied a hyperlink from one page to another with a named anchor tag on the linked page. No problem. But I would like to have the named anchor change color - as it is in a table with several other named anchors, and I want the hyperlink to accentuate the selection within the table. Using css maybe? Im kinda new to this...
 
Replies
  • Currently Being Moderated
    Dec 24, 2008 11:57 AM   in reply to epson1280
    Named anchors are coded tags, and as such, are not visible to the visitor.



    "epson1280" <webforumsuser@macromedia.com> wrote in message
    news:gittdg$n3t$1@forums.macromedia.com...
    > This is most likely very simple for most of you, but I have applied a
    > hyperlink
    > from one page to another with a named anchor tag on the linked page. No
    > problem. But I would like to have the named anchor change color - as it
    > is in
    > a table with several other named anchors, and I want the hyperlink to
    > accentuate the selection within the table. Using css maybe? Im kinda new
    > to
    > this...
    >


     
    |
    Mark as:
  • Currently Being Moderated
    Dec 26, 2008 5:11 AM   in reply to Newsgroup_User
    The only way to do that would be to pass information from page1 to page2 as
    to which link was clicked, and then to use that information on page2 to set
    the color of the cell. There would be three ways to do this -

    1. Use cookies
    2. Use javascript
    3. Use server scripting

    None of those three ways is going to be something that DW will do using a
    built-in function.

    The cookie approach would require that you write information into a cookie
    on page1 after clicking on the link but before relocating to the linked
    page. Then you'd have to check for the cookie on page2, read it, and use
    the information to set the color of the cell (probably with CSS).

    The javascript approach would require that you add a url variable to each
    link on page1, parse the variable out on page2, and then use the same color
    method used in the prior suggestion.

    The server scripting approach would be identical to the javascript approach,
    except that it would be done in scripting executed by the server rather than
    by the client browser.

    Each of those three methods would require some coding skill on your part.

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs, Tutorials & Resources
    ==================


    "epson1280" <webforumsuser@macromedia.com> wrote in message
    news:giuedu$c95$1@forums.macromedia.com...
    >I may have not written my problem properly.
    >
    > I have a table with several names in it, each in an individual cell on
    > page2.html
    > I have several textual hyperlinks from page1.html that takes me to
    > page2.html
    > Depending on the hyperlink selected from page1 - I need the name in the
    > cells
    > on page2 to change color.
    > How do I do this?
    >

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 30, 2012 5:52 AM   in reply to epson1280

    "This is most likely very simple for most of you, but I have applied a hyperlink from one page to another with a named anchor tag on the linked page. No problem. But I would like to have the named anchor change color - as it is in a table with several other named anchors, and I want the hyperlink to accentuate the selection within the table. Using css maybe? Im kinda new to this..."

     

    Please tell me how you did this. I want to have a hyperlink going from an email blast to a specific area of another webpage. I know how to do "named anchors" from within the same page but not going from inside an email to the chosen area of the linked page. As always, any assistance would be most appreciated.

     

    ~Scoundral~

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 30, 2012 9:29 AM   in reply to Scoundral

    It's exactly the same, whether you are linking from an email or from a webpage. You just include the anchor name in the url.

     

    http://example.com/mypage.html#myanchor

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 30, 2012 9:59 AM   in reply to bregent

    thank you Bregent....it worked great!

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points