Control of layer visibility

They have: 2,390 posts

Joined: Nov 1998

aha a race out of our two moderators as to who will asnwer this
my money is on ...
JP

They have: 268 posts

Joined: May 1999

Any of you javascript gurus know why the following script isn't working? I want to have multiple links on a page that toggle the layer visibility of their associated layer when the mouse goes over and leaves the link.

A long sample of what I want is at my calendar pages at shoutingrock.org/troop214/Dec99.shtml

I just want the mouseover part. Not the click and link part.

I tried to use the following script but it didn't work.

shoutingrock.org/x.html

Please help!!!!

Thanks in advance

------------------
My goal in life is found in Phillipians 4:8-9

My goal in life is found in Phillipians 4:8-9
shoutingrock.org/troop214

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi,
Haven't got the time to look at the code yet, but http://members.aol.com/grassblad -- the "selfClosing Moveable Layers" script

Vinny

John Pollock's picture

He has: 628 posts

Joined: Mar 1999

Did the script Vincent suggested do the trick? Looks pretty good.

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi,

peeked at the code; the effect does look neat, but the zillions of code snippets Sad

You can only have one link because your div tag is at the top of the table. My guess (I really don't want to read all those 3-line functions) is that if you declare each cell that has a link with a unique div name & id (overdiv in the coder's language) you would be able to do what you want.
I still suggest you look at the dHTML scripts at my site. The Introductory one will (at the least) provide you with the background you'll need to make the changes.

Vinny GrassBlade: cut&paste javascript

[This message has been edited by Vincent Puglia (edited 14 January 2000).]

Where the world once stood
the blades of grass cut me still

They have: 268 posts

Joined: May 1999

Ok. I figured out what I wanted.

Take a look at the following two pages and let me know which one you like the best

shoutingrock.org/troop214/Decxx.shtml

or

shoutingrock.org/troop214/Dec99.shtml

Thanks for your help

------------------
My goal in life is found in Phillipians 4:8-9

My goal in life is found in Phillipians 4:8-9
shoutingrock.org/troop214

John Pollock's picture

He has: 628 posts

Joined: Mar 1999

I think I like the first one, to me it looks more consistent as to where to expect something to appear... though the second one has space advantages if you are short on page real estate.

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi,

I hate to say this, butyou will have problems with the first one because of the following:

getElementById(div).

Unless I'm mistaken, that method is version 5+ only.

Insofar as design: The first one is cleaner, but the second is spiffier (objective opinion)

Vinny GrassBlade: cut&paste javascript

[This message has been edited by Vincent Puglia (edited 15 January 2000).]

Where the world once stood
the blades of grass cut me still

They have: 268 posts

Joined: May 1999

I'm back.

I have settled on a look. Kind of

Would some of you folks that have 4.0 browsers look at the following pages and let me know if the pages work. Also any hints as to making it look better are appreciated.

shoutingrock.org/troop214/Febxx.shtml
By the way I use SSI to include the tables in the layers. So although it looks like a lot of code to type it really isn't.

Thanks for your responses.

------------------
My goal in life is found in Phillipians 4:8-9

[This message has been edited by Jim Shilt (edited 12 February 2000).]

My goal in life is found in Phillipians 4:8-9
shoutingrock.org/troop214

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi,

Looks good to me (aol ver5.0) If I get the chance I'll look at it with NN. Like the colors, font, layout

Vinny GrassBlade: cut&paste javascript

Where the world once stood
the blades of grass cut me still

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.