Results 1 to 2 of 2

Thread: Make "FaceScroll Custom scrollbar" scroll horizontal with mouse wheel

  1. #1
    Join Date
    Jun 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Make "FaceScroll Custom scrollbar" scroll horizontal with mouse wheel

    1) Script Title: FaceScroll Custom scrollbar

    2) Script URL (on DD):

    http://www.dynamicdrive.com/dynamici...roll/index.htm

    3) Describe problem: I want to make this scroll horizontally with the mouse wheel instead of scrolling vertically.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,991
    Thanks
    43
    Thanked 3,198 Times in 3,160 Posts
    Blog Entries
    12

    Default

    Well obviously it cannot do both and some scrollers could scroll in both directions. Or you might have two scrollers on a page and want one to mouse control vertical, another horizontal. So I've made up a modified version of the script that allows you to specify if you want the mouse to control the horizontal rather than the vertical for a scroller (right click and 'Save As'):

    facescroll.js

    To use the new option, first you need a scroller that scrolls horizontally*. Then say you have an on page init like:

    Code:
    <script type="text/javascript">
    	jQuery(function(){ // on page DOM load
    		$('#demo1').alternateScroll();
    	})
    </script>
    Add the highlighted:

    Code:
    <script type="text/javascript">
    	jQuery(function(){ // on page DOM load
    		$('#demo1').alternateScroll({'horzmouse': true});
    	})
    </script>
    Or, if you already have a configuration object - say:

    Code:
    <script type="text/javascript">
    	jQuery(function(){ // on page DOM load
    		$('#demo1').alternateScroll({'hide-bars': false});
    	})
    </script>
    Add to it:

    Code:
    <script type="text/javascript">
    	jQuery(function(){ // on page DOM load
    		$('#demo1').alternateScroll({'hide-bars': false, 'horzmouse': true});
    	})
    </script>

    *If you need help with that, let me know.
    Last edited by jscheuer1; 06-17-2013 at 04:16 PM. Reason: detail
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. FaceScroll Custom scrollbar
    By Dzsedzs in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 10-18-2012, 08:00 AM
  2. (Help) FaceScroll Custom scrollbar
    By Isnan Nugrah in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 06-16-2012, 08:26 PM
  3. Custom "jQuery Scroll to Top Control v1.1"
    By burkaans in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 03-09-2012, 08:07 AM
  4. Problem with "Page Scroller" (aka Custom Scrollbar)
    By chrbar in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 01-09-2008, 06:00 PM

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
  •