468,316 Members | 1,894 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,316 developers. It's quick & easy.

onmouseover change layer backround

Hi!

I was wondering if here enyway to change layer backround with css, I
don't want to use javascript. The code have to by placed in css file.
Jul 20 '05 #1
1 3640
On 2 Apr 2004 05:38:21 -0800, carramba <ca******@bootre.com> wrote:
Hi!

I was wondering if here enyway to change layer backround with css, I
don't want to use javascript. The code have to by placed in css file.

If it's an anchor, it's easy, use the :hover pseudo.

a {
background-color: #ff0000;
}

a:hover {
background-color: #cc0000;
}

While CSS allows :hover to be applied to other selectors, browser support
for non-anchors is poor. Some browsers will not render the hover style.

See http://www.w3.org/TR/CSS2/selector.html#x33 for more info.
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Tim | last post: by
4 posts views Thread by laurie | last post: by
7 posts views Thread by Richard | last post: by
5 posts views Thread by Jake | last post: by
3 posts views Thread by drjackk | last post: by
4 posts views Thread by Rob R. Ainscough | last post: by
1 post views Thread by wizard04frms | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.