How do I do a simple target show/hide layer?

Help…website due today. I have a simple row of thumbnail photos. I also have layers that are HTML copy. How do I link my photos to the text with a rollover function, so when the client clicks the photo, the info comes up for that particular photo and not any of the other ones. What is happening now is as I click through the copy stays up, so I have text over text over text-it does not go away when another photo is clicked. I need a simple If, then…so when one is clicked the others are hidden. Right now they all show as they are clicked. I used hide/show layers because I wanted to use HTML copy.
How do I do this with hide/show layers? Please help…


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You are right – that is just way harder than it ought to be. Clicking
doesn’t have an inverse event, so what needs to exist, and doesn’t, is
an action you can apply which will find all the other items in the
same color group and forces them to hide on a click.

Walter

On Sep 30, 2010, at 9:17 PM, Heather wrote:

Help…website due today. I have a simple row of thumbnail photos. I
also have layers that are HTML copy. How do I link my photos to the
text with a rollover function, so when the client clicks the photo,
the info comes up for that particular photo


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Why o Why should this be so hard?

It seems like such a intuitive need. And a simple action…if you can do it for graphics, why not text layers?

Edward, what would be your best alternative option at this point?

Thank you very much for your reply. I thought I was going crazy.

Anybody else like to chime in? I could use some help on this, if you know of a solution?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hmm. I’ve been called Richard or Roger by people who mis-hear my name,
but Edward is a new one on me.

I would do this in Protaculous, and it is a very short script there.
Remove all the Actions you’ve added so far, and then make two new
styles using the Styles palette.

First style should be named popup. You don’t need to add anything to
this in the way of style, but just to be sure that Freeway will
actually publish it, set the text-color to black or something
redundant like that.

Second style should be named trigger and the only thing that needs
is one Extended attribute:

Name: cursor
Value: pointer

Click on each of your popups in turn, and apply the popup style to
them. As you do, make note of the name of each box (and/or rename them
to be rational to your design).

Click on each of your trigger images, and apply the trigger style to
them. Each one of the trigger images should also have the Observer
Action applied to it (part of Protaculous).

In the Observer Action, choose prototype-packed from the library
picker, then type ‘click’ in the DOM event field, and click on the
Function Body button and enter the following code:

$$('.popup').invoke('hide');
$('popupname').show();

Each one needs to have the correct name of the popup you want to
control replacing the word popupname above (but keept the quotes –
they’re important).

Finally , you just need to hide all of the popups when the page loads.
Click somewhere on the page and apply the Protaculous Action to the
page. Change the Library picker to prototype-packed, and paste in the
following code in the top Function Body dialog:

$$('.popup').invoke('hide');

That is all you need to do, it should just work.

Walter

On Sep 30, 2010, at 10:28 PM, Heather wrote:

Why o Why should this be so hard?

It seems like such a intuitive need. And a simple action…if you
can do it for graphics, why not text layers?

Edward, what would be your best alternative option at this point?

Thank you very much for your reply. I thought I was going crazy.

Anybody else like to chime in? I could use some help on this, if you
know of a solution?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options