21,886
社区成员
发帖
与我相关
我的任务
分享
top.ifm.contentWindow.document.body.innerHTML='<div style="padding:30px;">给自己留言呀?那多费劲!呵呵!</div>';
<iframe id="ifm" src="/comment.php?t=1&p=default&id=<?php echo $aid; ?>" frameborder="0" width="598px" height="198px"><!--0:song;1:article;2:photo;3:note;--></iframe>
<script>var ifm = $('ifm');</script>
function test(){
var ifrm = document.getElementById('ifm');
var doc = (ifrm.contentWindow || ifrm.contentDocument);
if (doc.document) { doc = doc.document;}
doc.body.innerHTML = "Hello";
}
setTimeout("test()",1);