buttons: function(n, p) {
            if (n == undefined || n == null) {
                var n = !this.locked && this.options.size !== 0 &&
((this.options.wrap && this.options.wrap != 'first') ||
this.options.size == null);
                //if (!this.locked && (!this.options.wrap ||
this.options.wrap == 'first') && this.options.size != null &&
this.last >= this.options.size)
                //    n = this.tail != null && !this.inTail;
            }

            if (p == undefined || p == null) {
                var p = !this.locked && this.options.size !== 0 &&
((this.options.wrap && this.options.wrap != 'last') || this.first >
1);
                if (!this.locked && (!this.options.wrap ||
this.options.wrap == 'last') && this.options.size != null &&
this.first == 1)
                    p = this.tail != null && this.inTail;
            }

            var self = this;
            n = true;
            this.buttonNext[n ? 'bind' : 'unbind']
(this.options.buttonNextEvent, this.funcNext)[n ? 'removeClass' :
'addClass'](this.className('jcarousel-next-disabled')).attr
('disabled', n ? false : true);
            this.buttonPrev[p ? 'bind' : 'unbind']
(this.options.buttonPrevEvent, this.funcPrev)[p ? 'removeClass' :
'addClass'](this.className('jcarousel-prev-disabled')).attr
('disabled', p ? false : true);

            if (this.buttonNext.length > 0 && (this.buttonNext
[0].jcarouselstate == undefined || this.buttonNext[0].jcarouselstate !
= n) && this.options.buttonNextCallback != null) {
                this.buttonNext.each(function()
{ self.options.buttonNextCallback(self, this, n); });
                this.buttonNext[0].jcarouselstate = true;
            }

            if (this.buttonPrev.length > 0 && (this.buttonPrev
[0].jcarouselstate == undefined || this.buttonPrev[0].jcarouselstate !
= p) && this.options.buttonPrevCallback != null) {
                this.buttonPrev.each(function()
{ self.options.buttonPrevCallback(self, this, p); });
                this.buttonPrev[0].jcarouselstate = p;
            }
        },

On Jul 8, 11:03 am, expresso <dschin...@gmail.com> wrote:
> If you look at the JCarousel .js, here's the logic
>
>         buttonNextHTML: '<div></div>',
> ....
>         this.buttonNext = $('.jcarousel-next', this.container);
>
>         if (this.buttonNext.size() == 0 &&
> this.options.buttonNextHTML != null)
>             this.buttonNext = this.clip.before
> (this.options.buttonNextHTML).prev();
>
> On Jul 8, 10:40 am, BaBna <thomas.na...@gmail.com> wrote:
>
> > Because it sucks?
> > It might create problems with some DTD I think, and maybe this disable
> > on a DIV is an IE "special feature", I don't know.
> > Anyway, what do you want to achieve here?
>
> > On Jul 8, 4:30 pm, "Cesar Sanz" <the.email.tr...@gmail.com> wrote:
>
> > > How come is that you want to disable a div??
>
> > > Do you mean, block the content inside div?
>
> > > ----- Original Message -----
> > > From: "BaBna" <thomas.na...@gmail.com>
> > > To: "jQuery (English)" <jquery-en@googlegroups.com>
> > > Sent: Wednesday, July 08, 2009 9:28 AM
> > > Subject: [jQuery] Re: Cannot disable div
>
> > > Maybe because there is no disabled property for DIV?
>
> > >http://www.w3schools.com/tags/tag_DIV.asp
>
> > > On Jul 8, 4:25 pm, expresso <dschin...@gmail.com> wrote:
> > > > <div class="jcarousel-skin-ie7">
> > > > <div class="jcarousel-container jcarousel-container-horizontal"
> > > > style="display: block; height: 220px; width: 592px;">
> > > > <div class="jcarousel-prev jcarousel-prev-horizontal" style="display:
> > > > block;" disabled="false"/>
> > > > <div class="jcarousel-next jcarousel-next-horizontal" style="display:
> > > > block;" disabled="false"/>
> > > > <div class="jcarousel-clip jcarousel-clip-horizontal" style="width:
> > > > 600px; height: 220px;">
> > > > <ul id="mycarousel" class="jcarousel-list jcarousel-list-horizontal"
> > > > style="height: 220px; width: 3315px; left: -2028px;">
> > > > </ul>
> > > > </div>
> > > > </div>
> > > > </div>
>
> > > > I'm trying to change disabled to true. It's not taking. And what I
> > > > also don't get is what is disable doing for a div?
>
> > > > I have tried this:
>
> > > > jQuery(".jcarousel-skin-ie7 .jcarousel-next .jcarousel-next-
> > > > horizontal").attr({ disabled: "true" });

Reply via email to