how to modify a scrolling text on event

I know to make an horizontal scrolling text(for example with the marquee balise).
But I need to modify the text on an event(for example onclick).
For example with 2 click boxes,clik,clak, with clik the scrolling text is -hello-
and with clak, the scrolling text is -bonjour-
Anticipate thanks   jack
Who is Participating?
apprentiConnect With a Mentor Commented:
<marquee id="apprentismarquee">Eire</marquee>
<form name="f1">
<input type="checkbox" checked="checked" onclick='document.getElementById("apprentismarquee").innerHTML="Eire";document.f1.elements[1].checked=false'
/>Eire<br />
<input type="checkbox" onclick='document.getElementById("apprentismarquee").innerHTML="Cymru";document.f1.elements[0].checked=false'
/>Cymru<br /></form>
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.