jquery Programming Glossary: h2top
Using arrow keys with jQuery scrollTo http://stackoverflow.com/questions/2168739/using-arrow-keys-with-jquery-scrollto '.new' .each function i h2 loop through article headings h2top h2 .offset .top get article heading top if scrollTop h2top compare.. h2top h2 .offset .top get article heading top if scrollTop h2top compare if document is below heading .scrollTo h2 800 scroll.. '.new' .each function i h2 loop through article headings h2top h2 .offset .top get article heading top if scrollTop h2top compare..
Using arrow keys with jQuery scrollTo http://stackoverflow.com/questions/2168739/using-arrow-keys-with-jquery-scrollto of the document .click function scrollTop window .scrollTop '.new' .each function i h2 loop through article headings h2top h2 .offset .top get article heading top if scrollTop h2top compare if document is below heading .scrollTo h2 800 scroll.. '.new' .each function i h2 loop through article headings h2top h2 .offset .top get article heading top if scrollTop h2top compare if document is below heading .scrollTo h2 800 scroll to in .8 of a second return false exit function script What.. the function function scrollToNew scrollTop window .scrollTop '.new' .each function i h2 loop through article headings h2top h2 .offset .top get article heading top if scrollTop h2top compare if document is below heading .scrollTo h2 800 scroll..
|