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?

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

I figured out why %HTMLNAME% was not working, in case someone finds this thread later. I didn’t realize you had to enclose it in quotes. I’m an old school programmer–if something is in quotes, it is left exactly as is, not replaced with a different string. At least in my head.

Jason, thanks, I stole some code from your sample and it works OK. If I understood you correctly I should be able to turn that into a course-level function (in the HEAD area), and call it from individual objects.