can anyone shed a light? <img id="ours" style="display:none;" src="ours.jpg"/> <script> function oursOpacity(id){ $(id); new Effect.Scale(id,100,Object.extend.({ beforeStart:function(effect){ $(effect.element).style.display = ''block''; $(effect.element).setOpacity(0); }} ))}; oursOpacity(''ours''); </script> --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Try id = $(id); --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
and remove point after Object.extend On Feb 5, 7:03 pm, ert <tetri...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> can anyone shed a light? > > <img id="ours" style="display:none;" src="ours.jpg"/> > > <script> > function oursOpacity(id){ > $(id); > new Effect.Scale(id,100,Object.extend.({ > beforeStart:function(effect){ > $(effect.element).style.display = ''block''; > $(effect.element).setOpacity(0); > > }} ))}; > > oursOpacity(''ours''); > > </script>--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
This should be enough: function oursOpacity(id) { new Effect.Scale(id,100, { beforeStart: function(effect) { effect.element.setStyle({display: ''block''}).setOpacity(0); } }) } oursOpacity(''ours''); --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---