Jump to content

onMouseOver Events


angelodev

Recommended Posts

hi there, i have a piece of code that look like this:

 

<td style= "something.... " onMouseOver = "changestyle" onMouseOut = "changestyle">

 

Right now, i have to change the style of the page adding a CSS files, just for make clear the page code.

Is there a solution for insert into the CSS also the two style changed by the onMouseOver/out events?

And how can i recall from the TML page?

Link to comment
Share on other sites

I ave to change te cells background color where the mouse come over.

For make more clear the code , i'd like to use CSS. If I change the class dinamically with Javascritp, the background will change or i have to refresh thw browser?

Link to comment
Share on other sites

I ave to change te cells background color where the mouse come over.

For make more clear the code , i'd like to use CSS. If I change the class dinamically with Javascritp, the background will change or i have to refresh thw browser?

 

As fenway suggests, simply changing your class will let you do what you're after. If you generate a class in your CSS something like "td.hover", you could just apply it like so:

<td onmouseover="this.className='hover';" onmouseout="this.className='';"></td>

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.