<td> and font : one more time ... sorry but i need it

They have: 15 posts

Joined: Jan 2001

Hi,
I need to chage the color and the style of the text contain in a element when the mouseOver (td) method is called ?

Or if someone know how to call the method mouseOver of an anchors element.

I insist but my search on the internet take me no answer and i haven't find a site which refers to this part of scripting (ie a complete reference on scripting and how to access to the available methods, ....).

If someone know a site name or the solution ... let me know !

thanx for reading ...

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

Well, I can get you started. But I'm no Netscape guy, so it will most likely have probs there. (can someone repost with a fixed version, plz)

<table >
<tr>
  <td onMouseOver="my_content.style.color='ff0000';" onMouseOut="my_content.style.color='0000ff';">
    <span id=my_content>
    blah!
    </span>
  </td>
</tr>
</table >
'This *should* make the text red on mouse over and blue on mouse out.

Mark Hensler
If there is no answer on Google, then there is no question.

They have: 15 posts

Joined: Jan 2001

ok it works on IE 5.5 .

But where can i have all scripting methods and properties for html elements ?

thanx

detox's picture

They have: 571 posts

Joined: Feb 2001

can you post the code your working on. Do you want this as a nav system??

There are a few crossbrowser menu systems that you could cut down to only one level, that would give you not only a bg color highlight but a text highlight as well. I myself have done this for a menu system which was only 1 level deep.

I can hunt this down for you, if that is the kind of system you are looking for.

This would be the easiest way to do this. I am loathe to script something from scratch - we all are !- when there is a more readily avaiable option......

They have: 15 posts

Joined: Jan 2001

Ya this is a nav system that i'm scripting but it work with different frame.
In fact a had the nav system working yet but the graphic interface was poor, and i haven't scripting for styling before ...

Now all works if you always want the code give me your e-mail and i send it to you.

in anycase thanx ...

detox's picture

They have: 571 posts

Joined: Feb 2001

I'd be interested to see what you finally came up with.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.