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?

#384050 Score: 0
Profile photo of Jason Dalrymple
Jason Dalrymple
Member
beginner
intermediate
profile
wise owl
curious george
contributor
friend finder
advanced
picture perfect
54 pts
@JasonADal

So I was able to get just the text color to change, but it wasn’t all that intuitive. I’m also pretty sure there’s a cleaner way to do this with jQuery and CSS than the JavaScript solutions in the sample.

The audio has an event that runs a JavaScript that changes one or more aspects of the text block or font styles. I tried to add some explanatory statements as well. From there, it comes down to knowing CSS style attributes and tweaking as you like.