Monitoring Html Element CSS Changes in JavaScript
Posted by: Rick Strahls WebLog,
on 15 Aug 2008 |
View original | Bookmarked: 0 time(s)
Here's a scenario I've run into on a few occasions: I need to be able to monitor certain CSS properties on an HTML element and know when that CSS element changes. For example, I have a some HTML element behavior plugins like a drop shadow that attaches to any HTML element, but I then need to be able to automatically keep the shadow in sync with the window if the element dragged around the window or moved via code. Unfortunately there's no move event for HTML elements so you can't tell when...