多个Flash广告改变了它们的堆叠方式....仅限Chrome?

时间:2011-09-29 19:12:15

标签: javascript flash google-chrome

我有三个闪存文件全部堆叠在一起。有背景,前景和关闭按钮。在Chrome中时,它们有时会更改哪个具有更高的z-index(尽管检查员未确认)。尽管如此,它们仍然可以在FF和Safari中保持预期。

以下是代码:

$('<div id="overlay_wrapper" />').appendTo('body').append('<div id="overlay_background" />').append('<div id="overlay_foreground" />').append('<div id="overlay_button"/>');
var flashvars = {}; 
var params = {}; 
params.allowscriptaccess = 'always'; 
var attributes = {};
params.wmode = "transparent";
params.scale = "exactfit"; // try setting this as default if noborder doesnt work
var flashvars = {}; 
var params = {}; 
params.allowscriptaccess = 'always';
var attributes = {};

var win_width = $(window).width();
var win_height = $(window).height();
var dim = {
    'width' : win_width,
    'height' : win_height
};
$('#overlay_wrapper').css(dim);

swfobject.embedSWF(custom_takeover_options.wallpaper_url, 'overlay_background', win_width, win_height, '9.0.0',"expressInstall.swf", flashvars, params, attributes, function(){
    swfobject.embedSWF(custom_takeover_options.foreground_url, 'overlay_foreground', custom_takeover_options.foreground_width, custom_takeover_options.foreground_height, '9.0.0',"expressInstall.swf", flashvars, params, attributes, function(){
            swfobject.embedSWF(custom_takeover_options.close_url, 'overlay_button', 150, 40, '9.0.0',"expressInstall.swf", flashvars, params, attributes);
    });
});

任何想法都会有所帮助!

由于

0 个答案:

没有答案