x
 
1
<!DOCTYPE html>
2
<title>My Example</title>
3
4
<marquee behavior="scroll" direction="left" scrollamount="6" id="mymarquee">
5
<p>Go on... press the button!</p>
6
</marquee>
7
<input type="button" value="Slower" onClick="document.getElementById('mymarquee').setAttribute('scrollamount', 1, 0);">
8
<input type="button" value="Normal Speed" onClick="document.getElementById('mymarquee').setAttribute('scrollamount', 6, 0);">
9
<input type="button" value="Faster" onClick="document.getElementById('mymarquee').setAttribute('scrollamount', 12, 0);">