marquee slow/medium/fast speed using button
Example-Result:
Example-Code:
Marquee Text Hover to Stop
Example-Code:
<marquee behavior="scroll" direction="left" onmouseover="this.stop();" onmouseout="this.start();">Hower over and hold the mouse marquee stop</marquee>
Example-Result:
Marquee Text Start/Stop Using Button
Example-Code:
<marquee behavior="scroll" direction="left" id="marquee10"><p>Press Button</p></marquee>
<input type="button" value="Stop Marquee" onClick="document.getElementById('marquee1').stop();">
<input type="button" value="Start Marquee" onClick="document.getElementById('marquee1').start();">
Example-Result:
Multiple Start/Stop Marquee
Example-Code:
<marquee behavior="scroll" direction="left" scrollamount="7" id="marquee2"><p>Marquee 1</p></marquee>
<marquee behavior="scroll" direction="left" scrollamount="15" id="marquee3"><p>Marquee 2</p></marquee>
<input type="button" value="Stop Marquee 1" onClick="document.getElementById('marquee2').stop();">
<input type="button" value="Start Marquee 1" onClick="document.getElementById('marquee2').start();"><br />
<input type="button" value="Stop Marquee 2" onClick="document.getElementById('marquee3').stop();">
<input type="button" value="Start Marquee 2" onClick="document.getElementById('marquee3').start();">
Example-Result: