summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--js/lightbox_lite.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/js/lightbox_lite.js b/js/lightbox_lite.js
index f1563da..bb2ff43 100644
--- a/js/lightbox_lite.js
+++ b/js/lightbox_lite.js
@@ -217,6 +217,20 @@ function showLightbox(objLink) {
}
}
+ // Hide flash objects as they will 'peek' through the image in IE
+ embed = document.getElementsByTagName("embed");
+ for (i = 0; i != embed.length; i++) {
+ if (embed[i].style.display != "none") {
+ embed[i].style.visibility = "hidden";
+ }
+ }
+ objects = document.getElementsByTagName("object");
+ for (i = 0; i != objects.length; i++) {
+ if (objects[i].style.display != "none") {
+ objects[i].style.visibility = "hidden";
+ }
+ }
+
objLightbox.style.display = 'block';
// After image is loaded, update the overlay height as the new image might
@@ -260,6 +274,20 @@ function hideLightbox() {
}
}
+ // make flash objects visible
+ embed = document.getElementsByTagName("embed");
+ for (i = 0; i != embed.length; i++) {
+ if (embed[i].style.display != "none") {
+ embed[i].style.visibility = "visible";
+ }
+ }
+ objects = document.getElementsByTagName("object");
+ for (i = 0; i != objects.length; i++) {
+ if (objects[i].style.display != "none") {
+ objects[i].style.visibility = "visible";
+ }
+ }
+
// disable keypress listener
document.onkeypress = '';
}