Gas
Gas

Reputation: 737

jscrollpane styling the arrows

I'm implementing the jScroll pane jQuery script (from http://jscrollpane.kelvinluck.com ) on a page under development, and want to style it to suit the design of the page:

The page: http://baksagaspar.com/francesco-work/

Any help please?

Upvotes: 1

Views: 3562

Answers (2)

EMMERICH
EMMERICH

Reputation: 3474

From what I remember, jScrollPane uses CSS for the arrow images.

Just replace the background-image property on the style for the classes: .jspArrowDown and .jspArrowUp.

For disabled, make sure the backgroud-image for .jspArrowUp .jspDisabled is set to important.

Example:

.jspArrowUp {
  background-image: url(upArrow.jpg);
}

.jspArrowUp.jspDisabled {
  background-image: url(upArrowDisabled.jpg) !important;
}

Upvotes: 4

ChrisThompson
ChrisThompson

Reputation: 2008

I think you are setting the scroll on the wrong div.

$('#text-content-in').jScrollPane( {
    showArrows: true,
    verticalArrowPositions: 'after',
    horizontalArrowPositions: 'after'
});

Upvotes: 0

Related Questions