Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
MarvinJ920 #1
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
-
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... -
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... -
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... -
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... -
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... -
mkeefe #2
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
-
Murray *ACE* #3
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



Reply With Quote

