I am trying to change the text inside a marquee tag and the speed of the marquee using jQuery.
In my script, I have the following:
$("div.change").click( function() {
//here I want to make the script to change the text to anything else ...
});
In my HTML:
<div id="marq"><marquee id="title" scrollamount="5">MY TEXT</marquee></div>
<div class="change">Click Here To Change The Text in Marquee</div>
How do I change the speed and the text inside the marquee?
Thanks in advance.
The marquee tag is not in the HTML specification so it's support in newer browsers is not guaranteed. It's use is highly discouraged.
If you must have scrolling text, there are jquery plugins to do this.