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 the
Just 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 is Smooth 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: [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
