SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jun 2002
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Linking to an anchor w/in a hidden DIV; showing div

    I'm attempting to cut down on the amount of code I would need to hide layers on a page for multiple links. That is, I have say 10 links on a page, and to always hide the DIV that is visible, I need to label each layer with either 'show' or 'hide' within the onClick=showHideLayers attribute for EACH link. It works, but it's cumbersome.

    So, I decided to make one DIV which has related content, broken up into anchored areas.

    This DIV is hidden until one of 7 links is clicked. But, I want those links to jump to their respective anchor within the DIV. And, each time a different link is clicked, I want to jump to a different anchor.

    So, is there a way to SHOW a hidden DIV AND jump to an anchor within it?

    Thanks!!

    -E

  2. #2
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    could you post the code or the link to see what your after


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •