日期:2014-05-17 浏览次数:20907 次
var f = window.frames["HtmlEditor"];//框架ID
var body = f.document.getElementsByTagName("BODY")[0]; //要获取的框加内的body<SCRIPT language=JavaScript>
<!--
if(document.all){
document.write('<table width="100%" height:287px border="0" cellspacing="0" cellpadding="0" ><tr><td style="border:1px solid #C5C5C5; border-top:0;"><IFRAME class="HtmlEditor" ID="HtmlEditor" name="HtmlEditor" style=" height:286px;width:100%" frameBorder="0" marginHeight=0 marginWidth=0 src="/html/blankpage.html"></IFRAME></td></tr></table>');
}else{
document.write('<table width="100%" height:288px border="0" cellspacing="0" cellpadding="0" ><tr><td style="border:1px solid #C5C5C5; border-top:0;background-color:#ffffff"><IFRAME class="HtmlEditor" ID="HtmlEditor" name="HtmlEditor" style=" height:283px;width:100%;margin-left:1px;margin-bottom:1px;" frameBorder="0" marginHeight=0 marginWidth=0 src="/html/blankpage.html"></IFRAME></td></tr></table>');
}
//-->
</SCRIPT>var f = window.frames["HtmlEditor"];
var body = f.document.getElementsByTagName("BODY")[0];
//alert("size:"+f.document.getElementsByTagName("BODY").length);
body.innerHTML=document.getElementById("overviewText").value; function loadContent(){
var f = window.frames["HtmlEditor"];
var body = f.document.getElementsByTagName("BODY")[0];
//alert("size:"+f.document.getElementsByTagName("BODY").length);
body.innerHTML=document.getElementById("overviewText").value;
}