well if I take out accordion code everything works fine but my
question now why is it fighting with each other?
thanks for your input
On Sep 5, 12:46 pm, "Iván N Paz" <[EMAIL PROTECTED]> wrote:
> what about doing a:
>
> $('mySponsor').fade('hide') ???
>
> On 9/5/08,genxco<[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > ohhh...ok I find out what was wrong it seems like it in interfering
> > with accordion code for some reason.
>
> > This by its self works fine....
>
> > var mySponsor = new Fx.Tween('sponsorCon');
> > mySponsor.set('opacity','0');
>
> > However if I have this on top... like this
>
> > var myAccordion = new Accordion($('myList'), 'h3.toggler',
> > 'div.element', {
> > opacity: false,
> > onActive: function(toggler, element){
> > toggler.setStyle('color', '#41464D');
> > },
> > onBackground: function(toggler, element){
> > toggler.setStyle('color', '#FF6600');
> > }
> > });
>
> > var mySponsor = new Fx.Tween('sponsorCon');
> > mySponsor.set('opacity','0');
>
> > I no longer can set the opacity to 0. Can someone explain to me why
> > this is happening? I made sure that all of the element is unique and
> > non are repeats...
>
> > thank you in advance...
>
> > On Sep 5, 10:24 am, loki der quaeler <[EMAIL PROTECTED]> wrote:
> > > (i'm assuming you're using 1.2)
>
> > > if you want the setting to be visually reflected immediately, then
> > > you should set the style directly like:
> > > $('sponsorCon').setStyle('opacity', '0');
>
> > > if you want to fade it out, you could do:
> > > $('sponsorCon').fade('out');
>
> > > On Sep 5, 2008, at 7.16 PM,genxcowrote:
>
> > > > Sorry, just practicing mootools please don't be mean
>
> > > > I have been reading this doc over and over again....
>
> > > >http://docs.mootools.net/Fx/Fx.Tween
>
> > > > this is the example shown:
>
> > > > var myFx = new Fx.Tween(element);
> > > > //Immediately sets the background color of the element to red:
> > > > myFx.set('background-color', '#f00');
>
> > > > This is what I have in my htm
>
> > > > <div id="sponsorCon">
> > > > <p>xxxxxxxxxxxxxxxxxx</p>
> > > > </div><!--sponsorCon-->
>
> > > > This is my mootools js
>
> > > > var mySponsor = new Fx.Tween('sponsorCon');
>
> > > > mySponsor.set('opacity','0');
>
> > > > what am I missing?
>
> --
> ◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦www.ivanicus.com