/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Element.implement({ isFullyVisible: function() { if(this.isVisible()) { var coord = this.getCoordinates(), winScroll = window.getScroll(); return winScroll.y <= coord.top; } else { return false; } } });