A tiny, unnecessary, and useless jquery plugin that tells you if an element is overflowed (partially hidden).
Include script after the jQuery library
<script src="/path/to/jquery.js"></script> <script src="/path/to/overflowed.min.js"></script>
$('.normalElement').overflowed(); //Will return false $('.overflowedElement').overflowed(); //Will return true $('.someElements').overflowed(); //Will return an array of overflowed elements $('.someElements').overflowed(function(e) { //Pass a callback function and do something with those overflowed elements! e.addClass('overflowed'); });
Works with IE6+, Opera 10+, Chrome, Safari, Firefox 3.6+, jQuery 1.2+
Source hosted at GitHub