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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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