Solved

Javascript Scroll

Posted on 2012-04-09
1
295 Views
Last Modified: 2012-04-23
Is the following written properly to work in all browsers?  I am replacing the regular scroll bar with a customized one and it does not seem to work in IE.  Please look at the following and let me know if it is correct.  Thanks in Advance!

<script>
$(document).ready(function()
{
	$('.scroll-pane').jScrollPane(
		{
			showArrows: true,
			horizontalGutter: 0,
			verticalGutter: 0
		}
	);
});
</script>

Open in new window

0
Comment
Question by:rgranlund
1 Comment
 
LVL 16

Accepted Solution

by:
HagayMandel earned 500 total points
ID: 37825612
Maybe this will help (from jScrollPane's site):

FAQs

jScrollPane doesn't work in Internet Explorer on my site

There are two common reasons for jScrollPane failing in IE:

You have a trailing comma in your settings initialiser. Trailing commas in array or object literals break in IE.
You are manually adding the jScrollPaneContainer in your markup. This container is added by jScrollPane - you should not add it yourself. View source of the examples (e.g. not the GENERATED source in firebug) to get the correct syntax.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Easy responsive table out of existing table 28 55
How to make a moving character 3 55
Help with query 3 23
where is team.js? 3 23
I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question