Jump to content

Archived

This topic is now archived and is closed to further replies.

timgetback

not extactly php...but.....

Recommended Posts

I wanted to change my table properties when hovering over it with a mouse...... like i have an alpha filter on my tables and i wanted the filter off when a user hovers over the tables... any help would be great sorry its not php...

Share this post


Link to post
Share on other sites
Yes, this is javascript and most likely CSS. Google javascript table highlighting.

2nd link looks like it shows you what to do.

Share this post


Link to post
Share on other sites
Javascript is not needed, look at the example below.

[code]<style type='text/css'>
td:hover
{
background-color: red;
}
</style>

<table>
<tr>
<td>test1</td>
<td>test2</td>
</tr>
<tr>
<td>test3</td>
<td>test4</td>
</tr>
</table>[/code]

Share this post


Link to post
Share on other sites
That will only in IE7, FF and Opera and prehaps a few other CSS Compliant browsers. it wont work for IE6 and a select few browsers. As not all browsers support the :hover pseudo class on tags other than the anchor tag (a).

Share this post


Link to post
Share on other sites
[quote author=wildteen88 link=topic=103200.msg411256#msg411256 date=1154962635]
That will only in IE7, FF and Opera and prehaps a few other CSS Compliant browsers. it wont work for IE6 and a select few browsers. As not all browsers support the :hover pseudo class on tags other than the anchor tag (a).
[/quote]

Well, that's because IE6 is broken then. I don't use IE because I use Linux.

Share this post


Link to post
Share on other sites
Its not broken. its because it is not following CSS compliant standards, which now IE7 is.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.