Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rollover change font color 1

Status
Not open for further replies.

tonyngu

Programmer
Dec 17, 2000
15
MY
Hello,

Let say I have a field contents "Working with Director is fun!", whenever I rollover a particular word in that field, then the color of the word change. For example, I rollover the word "Director" in that field, and the text color turns into red and I rollout, the text color turns black again. How can I do that?
Thanks!

Regards,
Tony
 
I think what you're going to have to do is make everyword into a separate text field (If I get you right). Then, but a button over each of them (I'm assuming they're not user-input text fields) and make them invisible. Then, assign Lingo to the button such as:

On mouseEnter me
sprite(x).color = rgb(255,0,0)
end
On MouseLeave me
Sprite(x).color = rgb ("Whatever")
end

where sprite(x) is the NUMBER of the sprite in the score. If I totally botched this or misunderstood the question, sorry. However, this way you can always dynamicallly update the text from user activity.

Blended
 
Hi Blended,

No, no... You have answered my question. Thank you!. =)

Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top