Results 1 to 3 of 3

Thread: how to stop Mike's DHTML scroller

  1. #1
    Join Date
    Dec 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how to stop Mike's DHTML scroller

    Greetings,

    Is there a way to stop Mike's DHTML scroller from scrolling?
    http://www.dynamicdrive.com/dynamici...mikescroll.htm

    I want it to only scroll the text once. I'm the process of creation and the page is not live yet, so no URL to provide.

    Thanks in advance for any feedback!
    Trish

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    In scroller.js change this:

    Code:
          // When we reach the end, start over.
    
          if (scrollerList[i].currentY >= scrollerList[i].maxY) {
            scrollerList[i].currentY -= scrollerList[i].maxY;
            scrollerList[i].nextY = scrollerList[i].height;
          }
    to this:

    Code:
          // When we reach the end, start over.
    
          if (scrollerList[i].currentY+scrollerList[i].height >= scrollerList[i].maxY) {
          scrollerList[i].stopped=true;
          return;
            scrollerList[i].currentY -= scrollerList[i].maxY;
            scrollerList[i].nextY = scrollerList[i].height;
          }
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Dec 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Many thanks!

    That's fantastic! Thank you http://www.dynamicdrive.com/dynamici...mikescroll.htm

    Trish

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
  •