Jump to content


Photo

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


  • Please log in to reply
5 replies to this topic

#1 timgetback

timgetback
  • Members
  • PipPipPip
  • Advanced Member
  • 39 posts

Posted 06 August 2006 - 06:50 PM

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...

#2 GingerRobot

GingerRobot
  • Staff Alumni
  • Advanced Member
  • 4,086 posts
  • LocationUK

Posted 06 August 2006 - 06:55 PM

Yes, this is javascript and most likely CSS. Google javascript table highlighting.

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

#3 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 07 August 2006 - 02:31 PM

Javascript is not needed, look at the example below.

<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>


#4 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 07 August 2006 - 02:57 PM

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).

#5 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 07 August 2006 - 02:58 PM

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).


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

#6 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 07 August 2006 - 03:04 PM

Its not broken. its because it is not following CSS compliant standards, which now IE7 is.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users