<script type="text/javascript">
    var focus_width=1345
    var focus_height=350
    var text_height=0
    var swf_height = focus_height+text_height
    var pics='<%=str %>'
    var links='<%=loopId %>'
    var texts=''
var banner='<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="../imgFile/banner.swf"><param name="quality" value="high"><param name="bgcolor" value="#DADADA">'
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  width="'+ focus_width +'" height="'+ swf_height +'">');
    document.write(banner);
    document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
    document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
    document.write('</object>');
    </script>ASP.net   幻灯片 

解决方案 »

  1.   

    ctrl+shift+j 看火狐报错没有
      

  2.   

    firefox基本没人用了(这可不是我瞎掰的,百度的统计结果http://tongji.baidu.com/data/browser),所以不兼容就不兼容吧。IE和chrome能兼容就行。他俩加起来占了 82.98%,chrome占了 25.42%
      

  3.   

    <object >是IE里面显示flash的方法。ff和chrome里面是不支持的,改个写法就行了,好久不用忘记了。其实当时用的时候都是copy过来,改下swf的路径就ok了,根本就没记是怎么写的。看看其他网站是怎么引用swf的就可以了。