Button x,y coordinates changes upon scrolling

  • Автор темы Автор темы zenfreak
  • Дата начала Дата начала

zenfreak

Client
Регистрация
21.08.2013
Сообщения
249
Реакции
12
Баллы
18
How can I get the coordinates of a html element(button) after scrolling?

I get left: 150 top: 150 but after scrolling down top is -500. How can I fix that?
 
Try getting leftinbrowser and topinbrowser attribute values. They should not depend on scroll.
 
  • Спасибо
Реакции: zenfreak
Tried leftinbrowser and topinbrowser and it was exactly what I was looking for. Thank you!
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)