Hello everybody, I would like to use scriptaculous to implement a zoom effect in the same way that on this site: http://www.speurders.nl/bedrijfswagens/citron/29012379/citroen_berlingo_1_9_dsl_apk_12_09_2007_bj_1998_3450.html If you clic on the car''s picture. This zoom the picture. When I do it with scriptaculous it starts to zoom from a pixel to the nice width/ height but I''d like to start from the width/height of the picture.... I don''t know if I expressed myself in the correct way... Could anyone help me? Regards. pollux --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
All is ok.... The Morph effect is all I needed in fact. On May 10, 11:37 pm, pollux <jacquem...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello everybody, > > I would like to use scriptaculous to implement a zoom effect in the > same way that on this site:http://www.speurders.nl/bedrijfswagens/citron/29012379/citroen_berlin... > > If you clic on the car''s picture. This zoom the picture. When I do it > with scriptaculous it starts to zoom from a pixel to the nice width/ > height but I''d like to start from the width/height of the picture.... > > I don''t know if I expressed myself in the correct way... > > Could anyone help me? > > Regards. > > pollux--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
pollux a écrit :> I don''t know if I expressed myself in the correct way... > > Could anyone help me?Effect.Scale does this nicely for you, and has options to start from the current size. -- Christophe Porteneuve a.k.a. TDD "[They] did not know it was impossible, so they did it." --Mark Twain Email: tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Gday guys, Im getting an error when I try an access Event.pointerX & Event.pointerY as the page is loading in IE. I tracked it down to the document.body.scrollLeft call. Aparantly while the page is loading, the body property doesnt have any properties. I was able to fix it like so: pointerX: function(event) { if(!document.body) return; //I added this line here. return event.pageX || (event.clientX + (document.documentElement.scrollLeft || document.body.scrollLeft)); }, Has anyone come across this error before? If so, how do you fix it. Do you think its a prototype bug? Cheers, Keith -- MindVision Interactive Ph: (08) 8212 9544 Fax: (08) 8212 9644 E-Mail: keith-ildoxR50Kj+k+/BmZukYBiV4CK0nxESZKQEueVp/e6I@public.gmane.org Web: www.mindvision.com.au --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Keith, please file a bug report for this. Thanks! -- tobie On May 11, 1:32 am, Keith Pitt <k...-ve2Fw/1u49m1JilXf3s4iIdd74u8MsAO@public.gmane.org> wrote:> Gday guys, > > Im getting an error when I try an access Event.pointerX & Event.pointerY > as the page is loading in IE. I tracked it down to the > document.body.scrollLeft call. Aparantly while the page is loading, the > body property doesnt have any properties. I was able to fix it like so: > > pointerX: function(event) { > if(!document.body) return; //I added this line here. > return event.pageX || (event.clientX + > (document.documentElement.scrollLeft || document.body.scrollLeft)); > }, > > Has anyone come across this error before? If so, how do you fix it. Do > you think its a prototype bug? > > Cheers, > > Keith > > -- > MindVision Interactive > > Ph: (08) 8212 9544 > Fax: (08) 8212 9644 > > E-Mail: k...-ildoxR50Kj+k+/BmZukYBiV4CK0nxESZKQEueVp/e6I@public.gmane.org > Web:www.mindvision.com.au--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---