Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Fast forward button for scrolling text

  1. #1
    Join Date
    Nov 2008
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Fast forward button for scrolling text

    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


    Would really appreciate expert knowledge

  2. #2
    Join Date
    Jul 2008
    Posts
    128
    Thanks
    0
    Thanked 17 Times in 16 Posts

    Default

    Quote Originally Posted by fulham7 View Post
    On my home page - www.stonecricketclub.co.uk i have scrolling text.
    Where exactly is this scrolling text? All I saw was a status line scroller on the Contacts page, and few will see that.

  3. #3
    Join Date
    Jan 2008
    Posts
    4,167
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    It's on the exact page he linked us to, under everything.
    Jeremy | jfein.net

  4. #4
    Join Date
    Jul 2008
    Posts
    128
    Thanks
    0
    Thanked 17 Times in 16 Posts

    Default

    Quote Originally Posted by Nile View Post
    It's on the exact page he linked us to, under everything.
    That page performs a redirect within two seconds, so you don't get a chance to see it, let alone press a button.

  5. #5
    Join Date
    Jan 2008
    Posts
    4,167
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    When the page is about to redirect, press the stop button, probably next to the navigation bar (at the top of your browser).
    Jeremy | jfein.net

  6. #6
    Join Date
    Jul 2008
    Posts
    128
    Thanks
    0
    Thanked 17 Times in 16 Posts

    Default

    Quote Originally Posted by fulham7 View Post
    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>

  7. #7
    Join Date
    Nov 2008
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Ahh i see thats great.

    Yeah i know im not actually going to use it on that page anymore.

    How would you have it so there both turbo but going different directions?

    so

    (REVERSE) (FASTFORWARD)

    Reverse goes right
    Fastforward Goes left

    Regards

    Thanks for the help!!

  8. #8
    Join Date
    Jul 2008
    Posts
    128
    Thanks
    0
    Thanked 17 Times in 16 Posts

    Default

    Quote Originally Posted by fulham7 View Post
    How would you have it so there both turbo but going different directions?

    so

    (REVERSE) (FASTFORWARD)

    Reverse goes right
    Fastforward Goes left
    Code:
    <a href='#' id='speed'> &lt;&lt; </a> <a href='#' id='rev'> &gt;&gt; </a>
    
    <script type='text/javascript'>
    
    function marqueeControl( mqId, factor, speedId, revId )
    {
     var scroller = document.getElementById( mqId ) || badElem( mqId ),
         turbo = document.getElementById( speedId ) || badElem( speedId ),
         reverser = document.getElementById( revId ) || badElem( revId ),
         defRate = scroller.scrollAmount; 
              
     turbo.onmouseover = function(){ scroller.scrollAmount = defRate * factor; return false; };
     turbo.onmouseout = function(){ scroller.scrollAmount = defRate; return false; };
     reverser.onmouseover = function(){ scroller.direction = 'right'; turbo.onmouseover(); return false; };
     reverser.onmouseout = function(){ scroller.direction = 'left'; turbo.onmouseout(); return false; };
     
     function badElem( id ){ alert('Element "' +id+ '" not found'); return {}; } 
    }
    
    marqueeControl('mq', 5, 'speed', 'rev');
    
    </script>

  9. #9
    Join Date
    Nov 2008
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    FANTASTIC!

    Thats awesome

    Any idea why it overlaps on my main page?

    Have a look you will catch my drift

    http://www.stonecricketclub.co.uk/Latestnews.html

    Regards

  10. #10
    Join Date
    Jul 2008
    Posts
    128
    Thanks
    0
    Thanked 17 Times in 16 Posts

    Default

    Quote Originally Posted by fulham7 View Post

    Any idea why it overlaps on my main page?
    Probably because the <span> is closed in the wrong place.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •