This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OnMouseover Change text color.

 
Patricia Samuel
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I have a tag

& lt;span on mouse over="callfunction" class="text"& gt;textstring
& lt;/span& gt;



I want to change "textstring" color whenever user mouse over on it.can anyone help me to sort out this petty problem.

And also , i am getting some problem in posting this topic. It shows me some html related tag problems. I appreciate if some one could tell me how to post HTML code.


Thanks to All.
Have a Good Day!

-Patricia
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64982
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Patricia Samuel:

& lt;span on mouse over="callfunction" class="text"& gt;textstring
To invoke a function as an event handler:
And also , i am getting some problem in posting this topic

For security reasons, the forum code will filter out certain JavaScript phrases. The phrase "eval" and most of the "onwhatever" event attributes will trigger the filter.

To get around the filter, substitute the HTML entity for some characters in the phrase. For example, o for 'o'.
[ February 24, 2008: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64982
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
P.S. If you are only concerned with modern browsers, you can do this with CSS and no JavaScript.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic