<![CDATA[
<script language="Javascript" type="text/javascript">
var Dvbbs_bIsIE5=document.all;
var Dvbbs_Mode = 3;
if (Dvbbs_bIsIE5)
{var IframeID=frames["Dvbbs_Composition"];}
else
{
var IframeID=document.getElementById("Dvbbs_Composition").contentWindow;
}
function Gopreview()
{
document.preview.theBody.value=IframeID.document.body.innerHTML;
var popupWin = window.open('', 'preview_page', 'scrollbars=yes,width=750,height=450');
document.preview.submit()
}
Dvbbs_InitDocument('Body','gb2312');
</script>
]]><iframe class="Dvbbs_Reply" id="Dvbbs_Composition" marginheight="5" marginwidth="5" width="99%" height="227" onblur="CheckCount('Body','total');" ></iframe>
<script language="Javascript" type="text/javascript">
var Dvbbs_bIsIE5=document.all;
var Dvbbs_Mode = 3;
if (Dvbbs_bIsIE5)
{var IframeID=frames["Dvbbs_Composition"];}
else
{
var IframeID=document.getElementById("Dvbbs_Composition").contentWindow;
}
function Gopreview()
{
document.preview.theBody.value=IframeID.document.body.innerHTML;
var popupWin = window.open('', 'preview_page', 'scrollbars=yes,width=750,height=450');
document.preview.submit()
}
Dvbbs_InitDocument('Body','gb2312');
</script>
]]><iframe class="Dvbbs_Reply" id="Dvbbs_Composition" marginheight="5" marginwidth="5" width="99%" height="227" onblur="CheckCount('Body','total');" ></iframe>
//在IE中得到所有的element.其它的,不知道能不能得到
var Dvbbs_Mode = 3;
//不太明白
if (Dvbbs_bIsIE5)
//如果元素不为空
{var IframeID=frames["Dvbbs_Composition"];}
//得到名为Dvbbs_Composition 的元素
else
{
var IframeID=document.getElementById("Dvbbs_Composition").contentWindow;
//得到ID为Dvbbs_Composition的contentWindow属性,好像这个属性是手动加的。标准里应该没有吧。
}
function Gopreview()
{
document.preview.theBody.value=IframeID.document.body.innerHTML;
//在preview中的theBody插入IframeID body里的内容
//应该是嵌入页面的内容
var popupWin = window.open('', 'preview_page', 'scrollbars=yes,width=750,height=450');
//得到一个新窗口,并赋给popupWin
document.preview.submit()//提交preview form
}
Dvbbs_InitDocument('Body','gb2312');调用Dvbbs_InitDocument 函数不知道写得对不对