Forum Moderators: open

Message Too Old, No Replies

Java 'show/hide' layer on mouse click

         

markd

1:33 pm on Jan 7, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello all

I am trying to write some Javascript which will show/hide a DHTML layer on a mouse click on a logo. The objective is to have a short description of a product (approx. 40 words)appear in a layer when the product logo itself is clicked - the logo iself has its own layer.
I am then trying to replace this visible text layer, in the same position, by another when a second product logo is clicked.

The problem I am having is getting the text layer which is visible to become 'hidden' and replaced when another logo is clicked and the next product text layer needs to 'show'.

I am working in Dreamweaver, where the built-in show/hide behaviour is useful, but does not seem to do the job in actually replacing the previous layer.

Any help would be appreciated.

Many thanks.

knighty

2:11 pm on Jan 7, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Mark,

You have 2 layers A & B

In layer A you put a link to (Hide A, Show B)

In layer B you put a link to (Show A, Hide B)

Also

Head over to www.dreamweaver.com and vist the echnage they have some really cool extensions for layers.

MikeFoster

3:29 pm on Jan 7, 2002 (gmt 0)

10+ Year Member


Hi markd,

Consider [url=http://cross-browser.com/]my site[/url] as a free dhtml resource. I provide an advanced cross-browser dhtml library, as well as a small, very basic, library (see the downloads section).

If you have any questions don't hesitate to post them at this forum.

Thanks,
Mike