/    Sign up×
Community /Pin to ProfileBookmark

jQuery Scrollbar Problem (Keeps Fading Out)

Hello. ^_^

I’m trying to add a nice rounded scrollbar to my website. After a long search, I decided to go with the [B][URL=”http://enscrollplugin.com/”]enscroll jQuery plugin[/URL][/B] because:

[LIST=1]

  • [*]

    I can change the width of the scrollbar (border-radius) and make it as big or small as I want.


  • [*]

    If the user disables Javascript, the default/standard scrollbars will reappear.


  • [/LIST]

    …However, there’s a major problem: the scrollbar fades away if you don’t click on it. I want it to permanently appear as long as your mouse is hovering in the scrollbox.

    I’ve tried editing the code myself, but it’s very confusing. ? I don’t know what to edit. Is it setTimeout? FadeOut? Both? I have no clue. But, it seems like Line 79 is one of the main areas that affects it [I](specifically, the “1750” value in [B]f.call[/B])[/I] :

    [CODE] c && e.showOnHover && (c._fadeTimer ? clearTimeout(c._fadeTimer) : (e.verticalScrolling && a(c.verticalTrackWrapper).is(“:visible”) && a(c.verticalTrackWrapper).stop().fadeTo(275, 1), e.horizontalScrolling && a(c.horizontalTrackWrapper).is(“:visible”) && a(c.horizontalTrackWrapper).stop().fadeTo(275, 1)), b !== !1 && (c._fadeTimer = setTimeout(function() {
    f.call(d)
    }, 1750)))[/CODE]

    Here’s where [B][URL=”http://brhnetwork.com/jquery-div-problem/”]I uploaded a sample webpage[/URL][/B] (and all of the files). If someone could help me, I’d greatly appreciate it. Thank you in advance!! ?

    to post a comment
    JavaScript

    0Be the first to comment 😎

    ×

    Success!

    Help @just_bri spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.18,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...