Created
November 18, 2010 17:01
-
-
Save robotlolita/705279 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var element = document.getElementById("sum-div"); | |
(function() { | |
var timer_id; | |
function check_visible() { | |
// you have access to timer_id here :3 | |
if (element.style.display != "none") | |
clearInterval(timer_id); | |
} | |
timer_id = setInterval(check_visible, 100); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment