Does anyone know if it''s possible to do the moo.fx page scroll effect with scriptaculous? You can see the effect here http://moofx.mad4milk.net/documentation/ (click on the top links or ''back to the top'' links to see it). I tried this effect on my pages alongside running scriptaculous effects. They worked fine in all browsers except IE, so had to remove moo.fx from the pages. So I''m looking to see if it''s possible with scriptaculous instead of moo.fx --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Take a look at: http://wiki.script.aculo.us/scriptaculous/show/Element.scrollTo>Does anyone know if it''s possible to do the moo.fx page scroll effect >with scriptaculous? > >You can see the effect here http://moofx.mad4milk.net/documentation/ >(click on the top links or ''back to the top'' links to see it). > >I tried this effect on my pages alongside running scriptaculous >effects. They worked fine in all browsers except IE, so had to remove >moo.fx from the pages. > >So I''m looking to see if it''s possible with scriptaculous instead of >moo.fx > > >> > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ian Tyndall wrote:> Take a look at: > > http://wiki.script.aculo.us/scriptaculous/show/Element.scrollTo >Thanks, I''ve tried it in my page but can''t seem to get it to work. I add this to the head my page right? <script type="text/javascript">Element.scrollTo(''id_target_object'');</script> As well as: <script type="text/javascript" src="js/prototype.js"></script> <script type="text/javascript" src="js/scriptaculous.js"></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 -~----------~----~----~----~------~----~------~--~---
Never mind, I got it working :) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 9/15/06, FOOOD <iconaholic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Never mind, I got it working :) >Just to confirm that it works :) I really love your work foood ! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ok now I''m curious... where is some of foood''s work? On 9/15/06, Nicolas Terray <nicolas.terray-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On 9/15/06, FOOOD <iconaholic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Never mind, I got it working :) > > > > Just to confirm that it works :) > I really love your work foood ! > > > >-- Ryan Gahl Application Development Consultant Athena Group, Inc. Inquire: 1-888-919-8700 x2903 Blog: http://www.someElement.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 9/15/06, Ryan Gahl <ryan.gahl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Ok now I''m curious... where is some of foood''s work? >http://www.iconaholic.com/ (was foood.net) In my entourage, iCandy icons family is famous :) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Oh ok, cool. Yes, very nice. Tagged in my del.iciou.us. Btw, I wish I had an entourage :) On 9/15/06, Nicolas Terray <nicolas.terray-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On 9/15/06, Ryan Gahl <ryan.gahl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Ok now I''m curious... where is some of foood''s work? > > > > http://www.iconaholic.com/ (was foood.net) > > In my entourage, iCandy icons family is famous :) > > > >-- Ryan Gahl Application Development Consultant Athena Group, Inc. Inquire: 1-888-919-8700 x2903 Blog: http://www.someElement.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I''ll be in your entourage... wait, what does that entail? I''ve learned to take prestige with a grain of salt, since an ex-coworker of mine has become really famous in the design blogosphere. Several of his subordinates were much better designers, but nobody knows about them :-) Greg ________________________________ From: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf Of Ryan Gahl Sent: Friday, September 15, 2006 8:28 AM To: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: [Rails-spinoffs] Re: moo.fx scroll effect with scriptaculous? Oh ok, cool. Yes, very nice. Tagged in my del.iciou.us. Btw, I wish I had an entourage :) On 9/15/06, Nicolas Terray <nicolas.terray-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: On 9/15/06, Ryan Gahl <ryan.gahl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Ok now I''m curious... where is some of foood''s work? >http://www.iconaholic.com/ (was foood.net) In my entourage, iCandy icons family is famous :) -- Ryan Gahl Application Development Consultant Athena Group, Inc. Inquire: 1-888-919-8700 x2903 Blog: http://www.someElement.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
FOOOD wrote:> Does anyone know if it''s possible to do the moo.fx page scroll effect > with scriptaculous? > >You seem to have this problem solved (and very nice it looks too) but I thought I''d share how I do it. Rather than using inline effects I create internal links as normal, using ''name'' attributes in the destination anchor and ''#name'' in the ''href'' of the source anchor. I then add the attached javascript into the onload function of the page, which searches the page for all internal links and adds the scroll effect. This has the disadvantage that the smooth scroll isn''t added until the page has fully loaded, but it is backwards compatible and imo easier to implement because it just adds onto what would be there anyway. Not sure whether this will be useful for you, but I thought I''d share. Thanks Bob --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hey Robert, Robert Wallis a écrit :> using ''name'' attributes in the destination anchor and ''#name'' in the > ''href'' of the source anchor. I then add the attached javascript into theJust as a note: ''name'' attributes for links (and many other items) are deprecated as of XHTML 1.0 Strict. If it''s otherwise not an issue for you, you might want to use IDs (your href attributes will still work).> onload function of the page, which searches the page for all internal > links and adds the scroll effect. This has the disadvantage that the > smooth scroll isn''t added until the page has fully loaded, but it isSmooth scroll might work better when the whole rendering is done anyway. You might also want to look into the faster load (DOM-related load) issue previously discussed in this group. -- 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 -~----------~----~----~----~------~----~------~--~---
Thanks Bob. But my page was using ID attributes rather than name attributes as Christophe described. So I had to change all my links (it wasn''t too bad as for quite a few I did search & replace on my pages). Would be handy to know if you made a version of your script that works with ID attributes in the future though :) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I use this: new Effect.ScrollTo("element_id"); or $("element_id").visualEffect("ScrollTo"); hope this work to you :) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---