Thanks for the reply!! It worked great!
Since we are on the subject of effects is there an easier way to use the
opacity effect to just set the opacity to 0?
I am using new Effect.Opacity('thediv', {duration:0.0, from:0.0, to:0.0});
On Nov 29, 2007 7:26 PM, Tobie Langel <[EMAIL PROTECTED]> wrote:
>
> You need to set a border on your element initially (make it 0px solid
> #somecolor).
>
> Best,
>
> Tobie
>
> On Nov 29, 8:05 pm, "Antonio CS" <[EMAIL PROTECTED]> wrote:
> > I am not very familiar with all of scriptaculus effects and so I decided
> to
> > try the morph effect.
> > I just copied and pasted the morph effect from the documentation page
> and I
> > think all the effects work except the border.
> > Here's the code:
> >
> > new Effect.Morph('error_message',{
> > style:'background:#f00; color:#fff;'+
> > 'border: 20px solid #f88; font-size:2em',
> > duration:0.8
> >
> > });
> >
> > I changed the 'error_message' to the id of my div and the border
> remained
> > the same. I had this effect I wanted to try and I need the border.
> > I tried this on ie and ff and it failed
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---