<iframe id="frameaaa" onload="try{document.all['frameaaa'].style.height=frameaaa.document.body.scrollHeight;}catch(e){}"
scrolling="no"> </iframe>
var menuOpen = false;
function openMemo(){
var obj = document.getElementById('frameaaa');
if(!menuOpen) {
obj.src = "XXX/XXX.html";
obj.style.display="block";
menuOpen = true;
try {
obj.onreadystatechange = function() {obj.fireEvent('onload');}
} catch(e) {}
}
}
如果没有onreadystatechange,小文件是适合的,大文件就不行了
</script>