cu3er背景问题

时间:2010-05-27 17:33:12

标签: html css flash

我正在使用一组PNG来运行我的cu3er幻灯片。他们保持透明度,直到过渡,然后他们用白色背景装箱。有没有办法让它保持透明或设置背景颜色? http://205.186.139.193/是测试网站

使用Javascript:

  <script type="text/javascript">
  var flashvars = {};
  flashvars.xml = "<?php bloginfo('stylesheet_directory');?>/slider/cu3er.php";
  flashvars.font = "font.swf";
  var attributes = {};
  attributes.wmode = "transparent";
  attributes.id = "slider";
  swfobject.embedSWF("<?php bloginfo('stylesheet_directory');?>/slider/cu3er.swf", "cu3er-container", "963", "283", "9", "expressInstall.swf", flashvars, attributes);
  </script>

CSS:

  #cu3er-container{ background: #000; }
  #header_cu3er { background: #000; }

cu3er设置:

    <cu3er>
 <settings>

   <auto_play >
          <defaults symbol="circular" />
          <tweenIn tint="0xFFFFFF" alpha="0.65"  />
          <tweenOut tint="0xffffff" alpha="0" />
          <tweenOver alpha="0" />
      </auto_play>

   <prev_button>
   <defaults round_corners="5,5,5,5"/>
   <tweenOver tint="0xFFFFFF" scaleX="1.1" scaleY="1.1"/>
   <tweenOut tint="0x000000" />
  </prev_button>

     <prev_symbol>
   <tweenOver tint="0x000000" />   
  </prev_symbol>

     <next_button>
   <defaults round_corners="5,5,5,5"/>   
   <tweenOver tint="0xFFFFFF"  scaleX="1.1" scaleY="1.1"/>
   <tweenOut tint="0x000000" />
  </next_button>

     <next_symbol>
   <tweenOver tint="0x000000" />
  </next_symbol> 
 </settings>  

1 个答案:

答案 0 :(得分:0)

如何更改我的javascript以添加attributes.bgcolor并删除wmode?

    <script type="text/javascript">
    var flashvars = {};
    flashvars.xml = "<?php bloginfo('stylesheet_directory');?>/slider/cu3er.php";
    flashvars.font = "font.swf";
    var attributes = {};
    attributes.bgcolor = "d2d2d2";
    attributes.id = "slider";
    swfobject.embedSWF("<?php bloginfo('stylesheet_directory');?>/slider/cu3er.swf", "cu3er-container", "980", "500", "9", "expressInstall.swf", flashvars, attributes);
    </script>
是的,这解决了它!