Hey,
I have not run in to this problem yet with prototype window but I ran
in to it before with some thing that I was working on and the way that I
found around it was when I launched my float I scaned the dom for flash
objects and set them to be invisable and when I was finished with my fload
made them visable again. Not very elagent I know but it worked..... see
below code
Martin
*
function* showHideFlash() {
// IE
*var* objects = document.getElementsByTagName("object");
*for*(*var* i = 0; i < objects.length; i++) {
*if* (isFlash(objects[i])) {
*if* (objects[i].style.visibility == "hidden") {
objects[i].style.visibility = "";
} *else* {
objects[i].style.visibility = "hidden";
}
}
}
// Firefox
*var* objects = document.getElementsByTagName("embed");
*for*(*var* i = 0; i < objects.length; i++) {
*if* (isFlash(objects[i])) {
*if* (objects[i].style.visibility == "hidden") {
objects[i].style.visibility = "";
} *else* {
objects[i].style.visibility = "hidden";
}
}
}
}
*
function* isFlash(element) {
// IE
*if* (element.classid) {
*if* (element.classid == "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000") {
*return* *true*;
}
}
// Firefox
*if* (element.type) {
*if* (element.type == "application/x-shockwave-flash") {
*return* *true*;
}
}
*return* *false*;
}
On 13/04/07, Ciocco, Michael D. <[EMAIL PROTECTED]> wrote:
Hello,
I'm trying to use the Prototype window class to popup a window over a
Flash SWF. The window connects to a URL for the content. This works great
in IE 6,7 and FireFox 1+ in Windows – but fails to show properly in Firefox
on the Mac or safari. I'm willing to forget about safari, as it always
tends to be a problem – but I would really like to get this to work on
FireFox for the Mac. It seems like the SWF is always on top for some
reason. I'm using "wmode = transparent" for the swf. Has anyone had a
similar issue and know a way to fix it?
Any help or advice you can provide is greatly appreciated.
Thanks,
Michael D. Ciocco
Instructional Technology Design Specialist
The College of Professional and Continuing Education
Rowan University
[EMAIL PROTECTED]
_______________________________________________
Javawin mailing list
[EMAIL PROTECTED]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com
_______________________________________________
Javawin mailing list
[EMAIL PROTECTED]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com