Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Ease Scroll Bar.

  1. #11
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Looks great. Sorry if I wasn't clear, but that's exactly what I meant-- some "blank space" next to the text when you scroll "past" it. But it's not so much that it looks silly... just enough to make it feel interactive.

    One last idea: would it be possible to combine the two scrollbars, so that you could scroll both horizontally and vertically? It doesn't seem too useful, but it might be interesting for an image or something like that.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  2. #12
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,891
    Thanks
    2
    Thanked 441 Times in 435 Posts

    Default

    Hmmm

    I only did this because I was surprised that the DD Slick Scroll Bar took 9+K plus JQuery

    but I will give it a go
    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

  3. #13
    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

    Well, what I didn't like about that DD Slick Bar was that so much dead space was seen when you over scrolled. The amount of code doesn't bother me, if you use the Google AJAX API jQuery, chances are that it's cached on the user's machine. And, if it were an image, 9 K would be peanuts. And many people use jQuery for everything on their site. In that case it's probably a savings in bytes over using many different scripts that duplicate the basic and not so basic routines.

    One thing in favor of skipping jQuery and other libraries though - they don't support IE less than 6. Depending upon the target audience and upon how well the script degrades, that can be important. Not using a library is no guarantee that older IE will be supported. It all depends upon the code.

    Anyways, getting back to what happens at the end/beginning of the content. I like yours Vic, just the way it is. I don't think there should be extra space. But if a designer using your code wanted it, couldn't they just add one or more non-breaking spaces and/or br tags? That should work for the vertical one, perhaps an empty div or one with just a non-breaking space in it for the horizontal. Or perhaps just adding margins to the innermost container? That might work for either direction. What do you think?
    - John
    ________________________

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

  4. #14
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    John, the blank space I mentioned is already there. It's hidden unless you intentionally drag past the end of the scrollbar then it flashes for just a second. It makes it feel interactive, but it doesn't waste any space or show up unless you're "looking for it", then it immediately disappears when you release the scrollbar. I like it.
    In other words, I'm not suggesting any new changes related to that. I think it's fine.

    The only question remaining (in my opinion) is whether it would be possible to combine horizontal and vertical scrollbars at the same time. You can't nest them because then the scrollbars themselves would slide around, but maybe there's a creative way to do it so that wouldn't be a problem.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #15
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,891
    Thanks
    2
    Thanked 441 Times in 435 Posts

    Default

    I have updated the script for vertical and horizontal scroll bars

    The functional code size has increased to 5.62K.

    Anyways, getting back to what happens at the end/beginning of the content. I like yours Vic, just the way it is. I don't think there should be extra space
    As the ease of the scroll content is consistent with the slider ease so I am going to keep it
    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

  6. #16
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,891
    Thanks
    2
    Thanked 441 Times in 435 Posts

    Default

    I decided that I did not like that mainly because of the number of options it created

    So I have updated the script for just horizontal or vertical scroll although they can be combined.

    I have however added persistence.
    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

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
  •