Has anyone recently used swfobject 2.1 & greybox? I have a web page
where all the content is in a .swf file. I'm using swfobject 2.1 for
flash detection. Clicking within the .swf calls a javascript function
in the parent html page that will load an html form in the greybox
overlay. The grey box overlay works. However, the underlying flash
disappears or is rendered white in all browsers and on a mac & pc
(depending on how you want to describe it). I have a .gif image in the
<div> that swfobject uses to write the .swf to. If there is no flash
player the .gif shows up instead of the flash. The greybox overlay &
transparency works fine over the .gif (in all browsers).
I've set the wmode to both opaque & transparent with no success.
I've published the flash w/ the default flash flash detection .js,
AC_RunActiveContent.js, and set the wmode to transparent & opaque with
no success. And, greybox works even worse this way. The "close" header
on the overlay disappears over the flash. Also the overlay disappears
on the over the flash and is only visible over the rest of the browser
white space that has no content.
Here's what my codes looks like,
<script type="text/javascript">
var GB_ROOT_DIR = "./greybox/";
</script>
<script type="text/javascript" src="greybox/AJS.js"></script>
<script type="text/javascript" src="greybox/AJS_fx.js"></script>
<script type="text/javascript" src="greybox/gb_scripts.js"></script>
<link href="greybox/gb_styles.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function greyBoxOverlay() {
GB_showCenter("", "form.aspx", 540, 460);
}
</script>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
var params = {};
params.menu = "false";
params.quality = "best";
params.wmode = "transparent";
var attributes = {};
swfobject.embedSWF("flash_content.swf", "flashcontent", "950", "851",
"9.0.0", false, flashvars, params, attributes);
</script>
</head>
<body>
<div id="flashcontedsnt"><img src="failover.gif" alt="" width="950"
height="891" border="0" usemap="#formLink" /></div>
<map name="formLink" id="Map"><area shape="rect"
coords="223,153,909,661" href="javascript:greyBoxOverlay()" onclick=""
alt="registration form link" /></map>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"GreyBox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/greybox?hl=en
-~----------~----~----~----~------~----~------~--~---