how to modify a scrolling text on event

Posted on 2004-04-28
Last Modified: 2008-02-01
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
Question by:jacno
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

apprenti earned 125 total points
ID: 10940945
<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>

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Adding 1 the value of input "text" every 3 seconds 5 33
testing a web application for ipad on windows pc 3 38
Read text on Table 7 29
Javascript: Range object 16 13
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question