Explore the community Forums Lectora Lectora Questions & Answers Change text color in a script … is impossible? Or something? Reply To: Change text color in a script … is impossible? Or something?

#384067 Score: 0
Profile photo of CarlFink
CarlFink
Member
beginner
intermediate
contributor
LUC16 Attendee
wise owl
curious george
advanced
friend finder
41 pts
@CarlFink

Hi Carl – Based on what you’re trying to accomplish, the “%HTMLNAME%” token selector won’t work. The selector only works when the action is on the object itself.

The action is on the object itself. I’m not sure how I gave the impression that it was not. You may notice the “alert(obj.name);” in the code I posted–that was me confirming that obj was a pointer to the right object. It returns “text15256”. That’s the correct HTML name of the object. The action fires, the alert pops up … and nothing else happens. The problems is not what obj points to, though.

I deeply appreciate your taking the time to make that example project for me. I probably won’t get to try it until Monday, but I’m sure it will solve my problem.