SitePoint Sponsor

User Tag List

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

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

    :::cross post ::::

    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
    SitePoint Wizard
    Join Date
    Oct 2001
    Location
    Tucson, Arizona
    Posts
    1,858
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Please don't double post. Your original thread is still right here.

  3. #3
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    please refer to other post for your answers. That would be the more appropriate forum as this would require Javascript to function.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes


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
  •