2010-05-27 147 views
0

我正在使用一組PNG來運行我的cu3er幻燈片。他們保持透明度,直到過渡,然後他們被白色背景裝箱。有沒有辦法保持透明或設置背景顏色? http://205.186.139.193/是試驗場cu3er背景問題

的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> 

回答

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> 

是的,修復它!