OnClick version of Text Rollover?

I’d like to make two HTML text triggers that will show one or other
of two layers (divs) when clicked. One link to show one layer (and
hide the other), and the other to do the reverse.

(I’d like to show one of two menus depending on whether someone
clicks “Large” or “Small”, and I want to do this with HTML text
rather than a graphic.)

The Text Rollover action does this with rollovers, but I really want
onClick behaviour. Any suggestions?

k


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

You might try the Observer Action for this. Make sure your elements are all layers (so they get IDs) and this should be pretty simple.

Select your trigger DIV and apply Observer to it. Set the event to click, and then make a function to hide and show the elements:

$('thing1').hide();
$('thing2').show();

(That part would go in the Function Body dialog.)

for your other trigger, you would repeat these steps, but reverse the hide and show.

Walter


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