I'm currently designing a page using an effect from the great page.
What I'm trying to is pretty simple - just make a layer fade in when a button is pressed. There are a few of these layers, and the problem is that some layers will hide others.
Please click on the first two buttons on this page:
I know I can turn off each unwanted layer by name within the onclick event, but surely there is a more efficient way to do this with a variable?
Ideally I'd like to somehow pass the name of the previously viewed layer to a variable that can then be used within a 'fade' effect. E.g.:
<div onclick="new Effect.Fade('[VARIABLE]'); new Effect.Appear('NewLayer'); return false;" id="product1"></div>
I just don't have the knowhow to do this in practice!
This is doing my head in. Many thanks.
What I'm trying to is pretty simple - just make a layer fade in when a button is pressed. There are a few of these layers, and the problem is that some layers will hide others.
Please click on the first two buttons on this page:
I know I can turn off each unwanted layer by name within the onclick event, but surely there is a more efficient way to do this with a variable?
Ideally I'd like to somehow pass the name of the previously viewed layer to a variable that can then be used within a 'fade' effect. E.g.:
<div onclick="new Effect.Fade('[VARIABLE]'); new Effect.Appear('NewLayer'); return false;" id="product1"></div>
I just don't have the knowhow to do this in practice!
This is doing my head in. Many thanks.