Forum Discussion
KeithTrodden-48
2 years agoCommunity Member
Changing colour of textboxes
Hi everyone,
Just a question if anyone out there can help me...
Does anyone know how to use the trigger that executes javascript in Articulate Storyline to change the colour of a textbox when yo...
Nedim
2 years agoCommunity Member
Updated script:
const texts = document.querySelectorAll('[data-acc-text="text"]');
texts.forEach(text => {
text.style.backgroundColor = '#ab34de' //change the background color of the text box
const txt = text.querySelector('text');
if (txt) {
txt.style.fill = '#C0504D';
}
});
Related Content
- 8 months ago
- 8 months ago
- 3 months ago
- 10 months ago