Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Links to layers

    I've got a few layers on a few pages in a new site. What I can't figure out is
    how to get a "go back" button to go back to the last page showing the last
    layer states. Many times, a "back" function (like this: <a
    href="javascript:history.back()") goes back to the correct page but not showing
    the layers that were visible last. It seems that sort of link only goes back
    to the 'default' layer visibility states.

    How can I fix this?

    Susie Smith Guest

  2. Similar Questions and Discussions

    1. Fill layers vs Pixel layers
      What is the difference between a fill layer and a pixel layer that contains a flat color? (Beside the capacity to paint different colors into the...
    2. FreeHand Layers to Acrobat Layers
      Hi, I have noticed that in Acrobat 6 that you can have layered documents and I 'm wanting to know if there is a way to create a layered PDF from a...
    3. Resetting "Visited" links to "links" color when new browser opens
      HELP! This should be simple, but I can't find info: In using CSS for font color for text hyperlinks, I have mine set so that the "links" are a...
    4. When we move Image Links and HTML links
      On our Local Site (hard drive), our web projects is almost complete and we have already uploaded and sync the internet site (remote site). I have...
    5. ?Hard links, Soft links, & Aliases--Explain
      Hi All, Could some knowledgeable UNIX type please explain the differences between hard links, soft links, and traditional Mac aliases. Responses...
  3. #2

    Default Re: Links to layers

    So ,just to make sure I understand you correctly- you've got multiple layers on
    multiple pages, and those layers display/hide based upon the users click or
    other mouse movement, yes?

    The user can go forward to a new page, and then you want for them to click a
    "back" link which would return them to the page they were at, with the exact
    same layer they was at, still visible. Sounds like you'll need some kind of
    complex javascript for that one, if thats the case. Might even need some kind
    of named anchored inside the URL.

    (This here is a perfect example of how the :target pseudo class can be used in
    CSS3, as an alternative to bulky Javascript)

    mzanime.com Guest

  4. #3

    Default Re: Links to layers

    Yes, that's exactly what I'm after.

    Any ideas on the JS I'd need? It doesn't seem that difficult (but then if it
    were so simle, I wouldn't be here...yes!), and/or someone must have done this
    before???


    Susie Smith Guest

  5. #4

    Default Re: Links to layers

    Layers sorta suck, don't they? I mean, for anything much beyond silly menus.
    Susie Smith Guest

  6. #5

    Default Re: Links to layers

    Why? They allow you to do quite a few cool things.

    But I wouldn't use them to do what you are doing....

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "Susie Smith" <webforumsuser@macromedia.com> wrote in message
    news:dihuc9$gp1$1@forums.macromedia.com...
    > Layers sorta suck, don't they? I mean, for anything much beyond silly
    > menus.

    Murray *TMM* Guest

  7. #6

    Default Re: Links to layers

    Well, for example, a simple "Go back" button turns out to be impossible!

    I mean, that's a very basic element of web site design...
    Susie Smith Guest

  8. #7

    Default Re: Links to layers

    Well, yeah - misusing them the way you are, that would be true (my opinion,
    of course).

    Try some more conventional things without layers, however, like animating an
    image around the page, or making a scrolling region, or making certain kinds
    of menu systems, or swapping hotspots, or swapping images of different
    sizes, or any of zillions of other purposes in which they work well....

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "Susie Smith" <webforumsuser@macromedia.com> wrote in message
    news:dij76e$bil$1@forums.macromedia.com...
    > Well, for example, a simple "Go back" button turns out to be impossible!
    >
    > I mean, that's a very basic element of web site design...

    Murray *TMM* Guest

  9. #8

    Default Re: Links to layers

    Wrong! I'm not *misusing* anything!

    I just asked a simple question about a very simple concept: "go back"!

    Just because it can't be done with layers, that doesn't mean I'm 'misusing' anything.
    Susie Smith Guest

  10. #9

    Default Re: Links to layers

    Oh. Sorry.
    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "Susie Smith" <webforumsuser@macromedia.com> wrote in message
    news:dijn9q$4mv$1@forums.macromedia.com...
    > Wrong! I'm not *misusing* anything!
    >
    > I just asked a simple question about a very simple concept: "go back"!
    >
    > Just because it can't be done with layers, that doesn't mean I'm
    > 'misusing' anything.

    Murray *TMM* Guest

  11. #10

    Default Re: Links to layers

    Making a "go back" link is not impossible, you just coded it wrong.

    <a href="javascript:history.go(-1);">Go back</a>

    But having layers show/hide andredisplay based upon which layer was visible
    when the user left the page last is quite beyond me. (Using JS that is.)

    mzanime.com Guest

  12. #11

    Default Re: Links to layers

    I have an idea...

    Although I'm not a cookie or JS expert, one thought would be to either set a
    cookie for the "state" of visibility on the salient layer and then display the
    page accordingly.

    or

    Same concept but with JS....set a global variable and pull from that.

    DW_Steve Guest

  13. #12

    Default Re: Links to layers

    mzanime.com
    <a href="javascript:history.back()" is syntactically correct.

    There is a much easier, albeit not elegant solution: seperate the layers into
    different pages. That's what I did and It works fine.


    Susie Smith Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139