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

  1. #1

    Default Sticky Rollover

    I have menu images that should have rollovers. When you click on an menu
    image, a layer becomes visible, and the menu image should change to an 'active'
    state. You should then be able to reclick on that menu image and the layer
    disappears and the image returns to its original state (with rollovers)

    That is what I'm trying to do.
    Here's what I've done so far:

    I've got a behavior to toggle the layer - onClick
    I've got a behavior to toggle images, but u can't use this for the 'active'
    state, since when you mouse out, the image goes back to its original state.

    I've also picked up a command called XM Menu. This has sticky states, but will
    not Un-stick the menu image when its just being used to show a layer. (its
    meant for actual page links)

    If anybody has ANY suggestions I would be greatly appreciative.
    Thank you in advance!

    MarvinJ920 Guest

  2. Similar Questions and Discussions

    1. Sticky notes page module?
      Are there any modules that function in form interfaces to modify a very simple scratchpad type of html page. In short, like: ----- sample html...
    2. Sticky text links
      I have a page http://www.crosshatchdesign.com/synergy/coverage.html The links load a page into the iframe below. Now the client wants the link...
    3. Sticky Rollovers
      Stephanie: Stick? And are you using the browser's back button or the back button on your page? -- Murray --- ICQ 71997575 Team Macromedia...
    4. Rollover and making another rollover with links
      Hi, This website is nicely designed and the rollover menu design is simple, but clear and effective. http://earthtrends.wri.org/ Does...
    5. Mouse goes sticky
      Have a sticky mouse...every couple of minutes it will just stick in one spot and after moving the mouse erratically on my desk it will come unstuck...
  3. #2

    Default Re: Sticky Rollover

    You have a good start, you just need to store off the current "active
    clip". Then on rollOut check to see if that clip should change states
    or stay put.

    Here is some pseudo-code:

    var activeClip:MovieClip = null;

    myclip.onRollOver = function() {
    if(this == activeClip) return; // current clip, exit
    // rollover code here
    }
    myclip.onRollOut = function() {
    if(this == activeClip) return; // current clip, exit
    // rollout code here
    }
    myclip.onPress = function() {
    activeClip.onRollOut(); // clear current clip
    activeClip = this; // assign new active clip
    // click code goes here
    }

    Hope you get the idea of what I am going for, if not I can clarify.

    mkeefe Guest

  4. #3

    Default Re: Sticky Rollover

    You would need to either use custom javascript, or alot of hidden layers to
    accomplish this.

    Consider -

    A button with a normal rollover, and a layer positioned (but hidden)
    directly above it with the text of the "active" state in it). Give the
    button an onClick behavior that reveals the hidden layer. Now the button
    appears to be active and will no longer roll since the rollover is masked by
    the superimposed layer.

    With an array of these, you would make each onClick show its respective
    layer, and hide all of the others.

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (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
    ==================


    "MarvinJ920" <webforumsuser@macromedia.com> wrote in message
    news:eiehv5$ljh$1@forums.macromedia.com...
    >I have menu images that should have rollovers. When you click on an menu
    > image, a layer becomes visible, and the menu image should change to an
    > 'active'
    > state. You should then be able to reclick on that menu image and the
    > layer
    > disappears and the image returns to its original state (with rollovers)
    >
    > That is what I'm trying to do.
    > Here's what I've done so far:
    >
    > I've got a behavior to toggle the layer - onClick
    > I've got a behavior to toggle images, but u can't use this for the
    > 'active'
    > state, since when you mouse out, the image goes back to its original
    > state.
    >
    > I've also picked up a command called XM Menu. This has sticky states, but
    > will
    > not Un-stick the menu image when its just being used to show a layer. (its
    > meant for actual page links)
    >
    > If anybody has ANY suggestions I would be greatly appreciative.
    > Thank you in advance!
    >

    Murray *ACE* 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