Hi, I’m non a developer but I should do a simple thing.
I have an homepage with 8 transparent buttons, on rollover the borders are displayed. I have 8 scenes linked to each buttons. I need to simulate a visited effect by setting as visible some semitransparent rectangles, probably I have set global variables to save the state of these elements. Can someone help me please?
As straightforward as your request sounds, seeing an example of your project would be useful as there can sometimes be other issues in your set-up that would affect an accurate solution.
In this demo the “visited” buttons are set to 70% opacity when returning to the “homepage” screen from one of the other scenes (based on @MarkHunte’s original code): scene visited vMH1-JHSv1.hype.zip (27.7 KB)
Thank you Jim,
that is good but I have buttons that starts with 100% of transparency and seems that the code works only if the button is at higher level of opacity.
The buttons in Jim's example do start at 100% opacity, but also note that the unique element ID of the buttons showing the visited state is set to the scene name -- so make sure you are doing that in your document as well. If that's not working, can you share your document with this in place?
• The “buttons” (rectangles) that link to scene 2 & 3 are transparent (0% opacity) with side borders;
• The side borders of the buttons thicken on “mouse over” (could change color too - not in this demo).
• When returning to “Scene 1” from another Scene - the related button background is set to a light gray with a 20% opacity. Please see Fig. 1 below.
This demo is not trying to match your design - just show You the scripting concept
(located in the “Head HTML”). Please see Fig. 1 below.
No problem. The code now uses the array better due to to your changes in the scene interactions.
We now use the array correctly and iterate over the names/ids in it instead of using the current scene.
This type of example should be know as: skinacat , I'm coining it..
Thank you very much Jim!!!
Your code works perfectly. I’ve applied it to separate boxes (not directly on the buttons) in order to solve some mouseover effects.
Dear Mark and Jim,
I’m sad to re-open this thread, unfortunately my client use IE 11 and… the scripts doesn’t work. It is possible, is IE the usual nightmare?
Thank you in advance for the patience.
Maurizio
an alternative solution could be creating a “continue timeline” with the option “Can restart timeline” disabled for the opacity. in this way the opacity is editable only one time.
it works (without further manual code) only if you have all pages inside the same project.
I’m not sure this is exactly what you need but this is a free code solution