Purely technical fixes and cleanups:
Code:
<script type="text/javascript">
var iframe = window.setInterval(
function() {
var quiz = window.document.getElementById("quiz"),
quizht = parseInt(quiz.style.height);
if(isNaN(quizht))
quiz.style.height = "0px";
else if (quizht >= 500)
window.clearInterval(iframe);
else
quiz.style.height = (quizht + 1) + "px";
},
10
);
</script>
shachi: He's right on this one. The variable is overwritten straight away, before it's ever used, by the window.setInterval() call. While this isn't a particularly neat way to do it, it should function well enough.
Bookmarks