470,841 Members | 1,037 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

change bg-Image onMouseOver

Hello,

is it possible to change the bg-Image of a <td>-tag onMouseOver?
maybe with javaScript or with css?

Thzankis for any help,
Martin Nadoll
Jul 23 '05 #1
1 2345
Martin Nadoll wrote:
is it possible to change the bg-Image of a <td>-tag onMouseOver?
You mean the background image of a HTML "td" element.
maybe with javaScript or with css?


Yes, it is. That's a FAQ, please search before you post.

HTML + J(ava)Script/ECMAScript:

<td
style="background-image:url(...)"
onmouseover="if (typeof this.style != "undefined"
&& typeof this.style.backgroundImage != "undefined")
{
this.style.backgroundImage = 'url(...)';
}">

<OT>

CSS:

td:hover {
background-image:url(...);
}

</OT>
HTH

PointedEars

P.S.: de.comp.lang.javascript exists.
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Mike | last post: by
3 posts views Thread by Cliff Cavin | last post: by
1 post views Thread by Iwan Petrow | last post: by
1 post views Thread by max | last post: by
2 posts views Thread by upftftip | last post: by
9 posts views Thread by shoeyoz | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.