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?
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.