Got same problem here... I just cant start at the top with the slider!

Any ideas?

On 25 out, 21:37, ABB <watersel...@gmail.com> wrote:
> I have the exact same problem.
>
> Richard, can you be more specific?
>
> On Sep 23, 8:26 am, "Richard D. Worth" <rdwo...@gmail.com> wrote:
>
> > This is by design. If you want to invert it, subtract the current value from
> > the max value.
> > - Richard
>
> > On Tue, Sep 22, 2009 at 10:21 AM, Kyle <kjenni...@gmail.com> wrote:
>
> > > I followed this tut:
>
> > >http://net.tutsplus.com/tutorials/javascript-ajax/making-a-content-sl...
>
> > > but I cant make thesliderfunction vertically. Well thats not true.
> > > it actually does work but backwards. the handle starts on the bottom
> > > of thesliderand pulling it up causes the content to move in the same
> > > direction. Im trying ot create a custom made scroll bar so I need it
> > > to start at the bottom and as I pull it down, the content needs to
> > > move up.
>
> > > This is what I have
>
> > >      $(function() {
>
> > >                //vars
> > >                var conveyor = $(".content-conveyor", $("#sliderContent")),
> > >                item = $(".item", $("#sliderContent"));
>
> > >                //set length of conveyor
> > >                conveyor.css("height", item.length *
> > > parseInt(item.css("height")));
>
> > >        //config
> > >        var sliderOpts = {
> > >                  max: (item.length * parseInt(item.css("height"))) -
> > > parseInt($
> > > (".viewer", $("#sliderContent")).css("height")),
> > >          slide: function(e, ui) {
> > >            conveyor.css("top", "-" + ui.value + "px");
> > >          },
> > >                  orientation: 'vertical'
> > >        };
>
> > >        //createslider
> > >        $("#slider").slider(sliderOpts);
> > >      });

--

You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to jquery...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-ui+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en.


Reply via email to