<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>无标题页</title>
    <script src="Js/AC_RunActiveContent.js" type="text/javascript"></script>
       <script type="text/javascript">
        function loadswf()
        {
            var swfstr="<script type=\"text/javascript\">";
            swfstr+="AC_FL_RunContent('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','330','height','150','src','Upfile/Adverting/5153875','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','Upfile/Adverting/5153875');"
        swfstr+="<\/script>";
        var div1=document.getElementById("div1");
        div1.innerHTML=swfstr;
        }
        </script>
</head>
<body>
    <div id="div1">
            </div>
</body>
</html>
要用脚本输出loadswf里的动画。那段swfstr到底要怎么才行啊。各位高手摆脱了.

解决方案 »

  1.   

    loadswf() 只定义,没执行。
      

  2.   

    loadswf()   这个有定义。漏写了。可还是不行的哦。
      

  3.   

    没有Js/AC_RunActiveContent.js呀,神仙也没辙!最终是执行AC_FL_RunContent函数完成滴flash加载!
      

  4.   


                            var   swfstr=" <script   type=\"text/javascript\"> "; 
                            swfstr+="AC_FL_RunContent('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','330','height','150','src','Upfile/Adverting/5153875','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','Upfile/Adverting/5153875');" 
                    swfstr+=" <\/script> "; 
                    //var   div1=document.getElementById("div1"); 
                    //div1.innerHTML=swfstr; inner js是没用的
    document.write(swfstr);
      

  5.   

    但现在的问题是。我要将这个swfstr输出到div1并且执行。document.write能输出到div1里头?
      

  6.   

       <div   id="div1"> 
    <script>
    document.write(swfstr);
    </script>   </div> 这样就能输到div1里面了