1: function speedUp()
2: {
3: var obj = document.getElementByName("scrollers")
4:
5: for (i=0;i<=obj.Length -1;i++)
6: {
7: obj[i].scrollAmount = obj[i].scrollAmount * 3 - obj[i].scrollAmount
8: }
9: }
10:
11: function speedDown()
12: {
13: var obj = document.getElementByName("scrollers")
14:
15: for (i=0;i<=obj.Length -1;i++)
16: {
17: obj[i].scrollAmount = obj[i].scrollAmount * (10/7) - obj[i].scrollAmount
18: }
19: }
Tags: Dynamically-control-the-scroll-amount-of-marquee
Javascript | DHTML Tricks
Try, Strive and Struggle are the keys of my hope. When there is no hope, no success. So keep hoping and keep winning. No idea how true that statement is, as I myself is losing the biggest hope of mine. So do it on your own risk :)