Solved

Javascript Scroll

Posted on 2012-04-09
1
304 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
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…

749 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