javascript - swf not transparent + div opacity chrome & opera on osx -
ok got weird stuff here no clue anymore.
first swf file not going transparent, when ensure wmode transparent. non off browsers working... swf embedded not transparent. tried removing params, still same... what's wrong?
<div id="flashcontent"> <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/swfobject.js"></script> <script type="text/javascript"> var flashvars = {}; flashvars.domain = "*"; var params = {}; params.movie = "myflash.swf"; params.quality = "best"; params.play = "true"; params.loop = "false"; params.menu = "false"; params.wmode = "transparent"; params.bgcolor = "#626262"; params.scale = "noscale"; params.allowfullscreen = "false"; params.allowscriptaccess = "always"; params.allownetworking = "all"; var attributes = {}; attributes.id = "myflash"; swfobject.embedswf("<?php bloginfo('template_url'); ?>/include/myflash.swf", "flashcontent", "100", "100", "10.0.0", flashvars, params, attributes); </script> </div>
second going use css force div go transparent using opacity modes. ha, chrome & opera on mac osx not going opacity @ ><
i force them using important, , tried possible codes know...
-webkit-opacity: 0 !important; -moz-opacity: 0 !important; -ms-filter:"progid:dximagetransform.microsoft.alpha(opacity=0)" !important; filter: alpha(opacity=0) !important; opacity: 0 !important;
well have clue doing wrong?
it because passing params object in wrong spot
swfobject.embedswf("<?php bloginfo('template_url'); ?>/include/myflash.swf", "flashcontent", "100", "100", "10.0.0", flashvars, params, attributes);
try this:
swfobject.embedswf("<?php bloginfo('template_url'); ?>/include/myflash.swf", "flashcontent", 100, 100, "10.0.0", false, flashvars, params, attributes, false);
Comments
Post a Comment