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 [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
-~----------~----~----~----~------~----~------~--~---

Attachment: smoothscroll.js
Description: JavaScript source

Reply via email to