Results 1 to 7 of 7

Thread: Manual Up & Down controlled content

  1. #1
    Join Date
    Jan 2007
    Posts
    94
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Cool Manual Up & Down controlled content

    I really like the functionality that google uses to show their newest news. If you click the link below and look at the right side, I like the manual movement of content using the up and down arrows... I'm not sure if this is a scroller?

    http://finance.google.com/finance?q=SBUX

    Anyone know? Anyone know where I can find a similar script?

    Thanks

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Take a look at this thread:
    http://www.dynamicdrive.com/forums/s...ad.php?t=19100

    This is one of the only ones that I can think of off the top of my head (that is without really searching for it).

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Jan 2007
    Posts
    94
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Yeah that example is similar to what I'm looking for but the script directions are hard to follow.

    I'm trying to do a search on this, but can't seem to find the right scripts. Can anyone tell me what exactly this is called so I can locate a script?

  4. #4
    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

    This could easily be modified to look like that:

    http://www.dynamicdrive.com/dynamici...nualscroll.htm
    - John
    ________________________

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

  5. #5
    Join Date
    Jan 2007
    Posts
    94
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    If i use the manual scroller, how can I get it to jump down or up in chunks of information (like google's does)?

    Thanks

  6. #6
    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

    You can use these functions in place of the defaults:

    Code:
    function movedown(){
    if (window.moveupvar) clearTimeout(moveupvar)
    if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
    crossobj.style.top=parseInt(crossobj.style.top)-40+"px"
    else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
    crossobj.top-=40
    }
    
    function moveup(){
    if (window.movedownvar) clearTimeout(movedownvar)
    if (iens6&&parseInt(crossobj.style.top)<0)
    crossobj.style.top=parseInt(crossobj.style.top)+40+"px"
    else if (ns4&&crossobj.top<=0)
    crossobj.top+=40
    }
    You may want to play with the numbers a bit. I chose 40 as, that is about the height of two lines of text and that is about how much the Google scroller moved with each click.
    - John
    ________________________

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

  7. #7
    Join Date
    Jan 2007
    Posts
    94
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    This was EXTREMELY HELPFUL!!! THANK YOU!!!

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
  •