Answer the question
In order to leave comments, you need to log in
Implementing show/hide block on click in Fireworks?
There is such a block
When you click on
hide , the block collapses, only a strip with a link
to show such
remains
.
Then, when you click on show , the original block should appear . , but I need the whole block to be hidden (replaced). How to bypass it?
2) To implement everything planned, I perform the following procedure:
a) I make a slice of the block that needs to be hidden (although here, in theory, there should be an option from paragraph 1) + Swap image (onclick) -> State 2. A collapsed block is drawn in State 2. This item works - that is, on click, the block collapses and appears instead of hiding the inscription show
b) now you need to open the block on click on show . I'm trying to make another slice in State 2 on top of the block and Swap image (onclick) -> State 1 on it, but it doesn't work. I'm trying to make Swap image (onclick) -> State 3 on the same slice, in which the expanded block is drawn, but it doesn't work either.
Tell me how to solve such a problem?
Answer the question
In order to leave comments, you need to log in
1) Slice the entire block, then make a hotspot just above the button, bind it to the slice (pull the center of the hotspot and throw it on the slice) and then assign an action to the hotspot.
2) Unfortunately, it will not be possible to make the second button on top of the first one - overlaying interactive does not work. I fiddled with this problem for a long time, I came up with two solutions: in your case, you can simply enable / disable the block on hover (but explain that it should be a click: some icon or comment), if the block is large and with a lot of elements - takes its states to separate pages and simply link them.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question