Jump to content

mouseover mouseout code


newbiecat

Recommended Posts

Can anyone help me write the code necessary to do the following:

1) Create an html table that displays a vertical list of red, bue, green, purple.

2) Create an associative array that holds the data:

red display message is Red is crazy.

blue display message is Blue is calming.

green display message is Green is rich.

purple display message is Purple is for plums.

3) Using mouseover and mouseon, display the message corresponding to the color you hover over in the span below the table. Using css, the message when hovering over blue should be blue in color. For instance:

red

blue

green

purple

Blue is calming. (this message displays under list of colors when hovering over blue and displays in blue)

Link to comment
https://forums.phpfreaks.com/topic/170334-mouseover-mouseout-code/
Share on other sites

Archived

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

×
×
  • Create New...

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.