swfobjcct2.0使用

通过swfobject2.0来创建swf:

    var flashvars = false;
    var params = {
        allowscriptaccess : "always",
        allowfullscreen:"true",    
        wmode:"transparent"     //设置透明度
    };
    var attributes = {};
       swfobject.embedSWF("/swf/Uw.swf", flashid, "385", "420", "10.0.0", "expressInstall.swf",flashvars,params,attributes);

 swfobject.switchOffAutoHideShow();  设置object是否隐藏

 

使用swfobject.js时创建swf,兼容ie和firefox页面隐藏:

  .v_window_1{ visibility:hidden;}
 .v_window_2{ visibility: ;}
  *html .v_window_1{ visibility: visible; width: 1px; height: 1px; overflow: hidden;}
 *html .v_window_2{ visibility: visible; width:auto; height: auto;}

你可能感兴趣的:(html,IE,firefox)