Advanced Search

Results 1 to 4 of 4

Thread: FaceScroll Custom scrollbar

  1. #1
    Join Date
    Jun 2010
    Location
    Hungary
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question FaceScroll Custom scrollbar

    1) Script Title: FaceScroll Custom scrollbar

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...roll/index.htm

    3) Describe problem: First let me thank you DD for all the scripts you provide. They are all excellent.

    Hello All. What my problem is that I would like to color the Scrollbar in default style. For example I'd like to have it in red. I just couldn't figure it out where I could do that. If someone could help me out I would really appreciate it with a detailed solution where exactly you have to do the changes (which file, where in file).

    Thanks in advance, and sorry if already this question has been asked, I just don't have time to see all the threads.


    Dzsedzs

  2. #2
    Join Date
    Mar 2011
    Location
    N 11° 19' 0.0012 E 142° 15' 0
    Posts
    1,424
    Thanks
    37
    Thanked 84 Times in 83 Posts
    Blog Entries
    3

    Default

    THis is the code you use to call the script (where id is the id of the container to have the scroll bar
    Code:
    $('#id').alternateScroll();
    Change it to
    Code:
    $('#id').alternateScroll({ 'vertical-bar-class' : 'vertical-scroll-bar-styled'});
    Then, in general.css, add
    Code:
    .vertical-scroll-bar-styled {
    background-color:red;
    }
    keebs - keyboard1333 [at] gmail [dot] com
    Anime Views Forums

  3. #3
    Join Date
    Jun 2010
    Location
    Hungary
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you, it works. Unfortunately I'd like to use it horizontal not vertical. How do you do that? Thanks in advance.

  4. #4
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,020
    Thanks
    47
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    Code:
    $('#id').alternateScroll({ 'horizontal-bar-class' : 'horizontal-scroll-bar-styled'});
    And:
    Code:
    .horizontal-scroll-bar-styled {
    background-color:red;
    }
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

Similar Threads

  1. FaceScroll scrollbar setting scroll position
    By aztech4mac in forum Dynamic Drive scripts help
    Replies: 12
    Last Post: 10-07-2012, 10:30 PM
  2. FaceScroll scrollbar help please...
    By aztech4mac in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 09-30-2012, 10:07 PM
  3. FaceScroll Custom scrollbar
    By PaulChgo60657 in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 09-12-2012, 01:16 AM
  4. (Help) FaceScroll Custom scrollbar
    By Isnan Nugrah in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 06-16-2012, 08:26 PM
  5. Resolved Facescroll: Changing the position of the scrollbar so that its outside of the textbox
    By aviynw in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 06-15-2012, 11:08 AM

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
  •