Table Effect

I’ve seen this many a time, when you hover into a table it changes the background color of the table. How?

css styles.


onMouseOver="this.style.backgroundColor='#3399FF'; this.style.cursor='hand';" onMouseOut="this.style.backgroundColor='#0067CF';" onClick="window.location.href='home.php'"

just change the colors.

wow… thats crazy useful

^Sarcasm? Anyways, thanks Jubba.

onMouseOver=“this.style.backgroundColor=’#3399FF’; this.style.cursor=‘hand’;” onMouseOut=“this.style.backgroundColor=’#0067CF’;” onClick=“window.location.href=‘home.php’”

How would I end it? With a > ? And can I just have it with the onMouseOver and onMouseOut ?

you just put that in the cell code. < td > and yes.

Jubba, where do I put that code at? Can you make an HTML page or something for me so I can get the source code for where to put it?

www.bluefinatlantic.com/home.php

just view source and you’ll see how its used.

Thats a tiny tad bit easier, but I still can’t figure out how to enter it successfully. It’s there a button to click in DW that makes it an option or what?

sorry if you took it the wrong way… its not sarcam… good luck with it

Chea, It’s cool. Just wasn’t sure. Haha…

No there isn’t a button.

Dang.

If you want to use it in DreamWeaver, you can just go to the insert script button, and type it in there.

^Haha, I was talking about like a button in DW to insert the code for the effect for me. Thanks tho.

Jubba, I am still confused on where to put this information in? Do I make the table, and put it inside the empty part? It’s just not really working.

Ahhh I got it. Nevermind. THANKS JUBBA!!

I have pretty much tried everything I can think of, but iit still wont work! Arggg!!! I am trying to make the target frame=mid. Any ideas using that code?

onMouseOver=“this.style.backgroundColor=’#88A4C8’; this.style.cursor=‘hand’;” onMouseOut=“this.style.backgroundColor=’#686F77’;” onClick=“window.location.href=‘nav/dev.htm’”

I got an even better solution than that uses CSS classes. I will post a tutorial about it tonight.

*Originally posted by Vash *
**css styles.


onMouseOver="this.style.backgroundColor='#3399FF'; this.style.cursor='hand';" onMouseOut="this.style.backgroundColor='#0067CF';" onClick="window.location.href='home.php'"

just change the colors. **
how can i include that to be part of a CSS class so that each table cell inheriting from this class would have this rollover effect on? :slight_smile:

*Originally posted by DigitalPimp *
**I got an even better solution than that uses CSS classes. I will post a tutorial about it tonight. **

Im wondering… Have you decided to start this? It would be nice to see another solution.