Changing Text Background Color

sjc
Community Member Posts: 66
ANYTHING can be done......
It's a simple thing to do - to change the background color of a text block simply add this onclick action:
(I'm assuming you have show HTML published object names SELECTED in preferences so you can get the OBJECT name of the text block)
javascript:document.getElementById('textObjectName').style.backgroundColor = 'color you want';
textObjectName is the HTML published object name of the text block (in parenthesis) and the color you want is the color you want to change to expressed as a color or as a hexidecimal ( http://www.computerhope.com/htmcolor.htm )
Peter Sorenson
Quizzicle
Categories
- 35.8K All Categories
- 109 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 28.9K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 22 ELB Learning Content
- 22 ELB Learning Content Discussions
- 321 CenarioVR®
- 188 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 41 Rockstar Learning Platform®
- 38 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 5 The Training Arcade®
- 5 The Training Arcade Discussions
- 934 All Things eLearning
- 36 eLearning Development
- 546 Learning Management System (LMS) Integration
- 332 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products