
Originally Posted by
fulham7
On my home page -
www.stonecricketclub.co.uk i have scrolling text. I like the speed it goes but i was wondering if there is script you can use so you can add a button either side that you can view fast forward it and rewind it
Marquee is non-standard, so not all browsers will respond to this:
Code:
<html><body>
<marquee id='mq' scrolldelay="50" align="middle" width="621" height="19" scrollamount="3" style="font-family: 'Adobe Garamond Pro'; font-size: 12pt; color: #000000; background-color: #FFFFFF; text-decoration: blink; text-align: justify; border-style: solid; border-color: #FFFFFF" bgcolor="#FFFFFF">
Stone Cricket Club Beer Festival 19th June for tickets please email <a href="mailto:beerfestival@stonecricketclub.co.uk">beerfestival@stonecricketclub.co.uk</a>..........A rare fifty from Peter Booth (60) alongside a fine all-round bowling performance helps Stone to a 19-run victory over Tewkesbury.
A debut senior fifty for young Richard Boroughs (62*) and 43 from veteran Keith Driver is not enough to see Stone IIs avoid a 47-run defeat at the hands of Tewkesbury's talented second string.
</marquee><br>
<span id='speed'> [TURBO SCROLL] </span> <span id='rev'> [Fwd/Reverse] </span>
<script type='text/javascript'>
function marqueeControl( mqId, factor, speedId, revId )
{
var scroller = document.getElementById( mqId ),
turbo = document.getElementById( speedId ),
reverser = document.getElementById( revId ),
defRate = scroller.scrollAmount,
tLocked = false;
if(scroller.direction == null)
scroller.direction = 'left';
turbo.onmouseover = function(){ scroller.scrollAmount *= factor; };
turbo.onmouseout = function(){ if( !tLocked ){ scroller.scrollAmount = defRate;} };
turbo.onclick = function(){ tLocked ^= true; };
reverser.onmouseover = function(){ scroller.direction = ( scroller.direction == 'left' ? 'right' : 'left' ); };
}
marqueeControl('mq', 5, 'speed', 'rev');
</script>
</body>
</html>
Bookmarks