<![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>

解决方案 »

  1.   

    <![CDATA[ 
    <script   language= "Javascript "   type= "text/javascript "> 
    var   Dvbbs_bIsIE5=document.all;   //判断浏览器类型
    var   Dvbbs_Mode   =   3; 
    if   (Dvbbs_bIsIE5)   //如果浏览器类型支持frames[ "Dvbbs_Composition "];,就执行这条.反之就下一条
    {var   IframeID=frames[ "Dvbbs_Composition "];} 
    else 

    var   IframeID=document.getElementById( "Dvbbs_Composition ").contentWindow; 

    function   Gopreview()  // 这个方法是通过IframeID去加载一个新的页面

    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> 解释成这样,估计有点不妥...............