高人咋还没出现啊 望眼欲穿啊

解决方案 »

  1.   

    只能这样动态生成一个innerHTML然后
    写到另一个IFrame中去了
    <script>
        function f_change(){
        
        var str1="";
        var pic2="pURL=2.jpg";
        str1='<div id="div1"> <OBJECT id=oflash classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000';
        str1=str1+' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"';
        str1=str1+' style="WIDTH: 450px; HEIGHT: 450px;Border:1px"  VIEWASTEXT allowscriptaccess="always" swLiveConnect="true">';
        str1=str1+' <PARAM NAME="movie" VALUE="t.swf">';
        str1=str1+'  <PARAM NAME="quality" VALUE="high">';
        str1=str1+'  <PARAM  NAME="FlashVars" id="FlashVars" VALUE="'+pic2+'">';
        str1=str1+'</OBJECT></div>'
        window.parent.frames[0].document.body.innerHTML=str1;
        alert(str1);    }
    </script>