invisible layers

They have: 22 posts

Joined: May 2001

Does anyone know how to do invisible layers? What I want to do is have an image in a cell with text in a layer underneath that's invisible. When you go to the text version, the image is stripped out and the layer with the text in comes forward?

The coding for stripping out images is already in place and if there's any white text the code changes it to black so there shouldn't be a problem with the layer.

Any help appreciated

Jo

detox's picture

They have: 571 posts

Joined: Feb 2001

sounds like you are simply trying to hide or change the visibility of the layer. Is that right or Have I got this completely wrong?!!!

They have: 22 posts

Joined: May 2001

Nope, you've got it right!

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

This should help you out:

<head>
&lt;script language="javascript"&gt;
function JoCanningIsCool()
{
jocanning.style.visibility="visible"
}
&lt;/script&gt;
</head>

<body>

<img src="JoCanningImageSource" onmouseover="JoCanningIsCool()">

<div id="jocanning" style="visibility:hidden">YourText</div>
</body>
'

Shakespeare: onclick || !(onclick)

They have: 22 posts

Joined: May 2001

I'll give it a go,

Thanks
Jo

They have: 601 posts

Joined: Nov 2001

Simply add visibility=hidden to the object you're trying to hide.

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.