Solved

how to modify a scrolling text on event

Posted on 2004-04-28
3
192 Views
Last Modified: 2008-02-01
hello
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
0
Comment
Question by:jacno
3 Comments
 
LVL 4

Accepted Solution

by:
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>
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now