95
rated 0 times
[
96]
[
1]
/ answers: 1 / hits: 17947
/ 13 Years ago, tue, april 19, 2011, 12:00:00
How to detect overlap HTML elements, using JavaScript?
I have an item list (<ul>
). It slides up and down using JavaScript. When it slides down, depending on number of item, it may overlap the other element (<div>
), which is absolute positioned at this time (it can be changed).
How I can detect, when <ul>
overlaps this <div>
, to apply new style to the <div>
to hide it temporary or to move it down a little bit, to prevent overlapping?
It's just not looking good, when they overlap))
Here you can see, what I'm talking about: http://timetable.raj.fvds.ru/
Thanks a lot!
More From » jquery