Hi there,
I''ve got a long scrollable list, I''m attempting to highlight
the item
visible at the top (just like blue border in Google Reader). It''s
proving to be a little complex then first imagined!
I''m polling every while and iterating through the children of the
window until the Position.Page is non-negative.
I''m currently using:
Position.Page(item)[1] -
Position.cumulativeOffset($(''scrollwindow''))
[1]
Which is working great in Firefox and IE - giving me a relative top
value for the item to the scroll window.
But in Opera, the Page method is not changing when the div is
scrolled, rendering the code useless.
Any advice would be much appreciated!
Thanks,
Alex
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---