When I open Shadowbox flash in html disappear

4 messages Options
Embed this post
Permalink
Michal CELEC

When I open Shadowbox flash in html disappear

Reply Threaded More More options
Print post
Permalink
I want ask, I have a Shadowbox on my html page, everything is perfect and functional, but I am using Shadowbox (for example i am opening image gallery in shadowbox), flash movies used in html disappear, when I close Shadowbox, everything is OK. Can you help me? I want when user click on Shadowbox, flash movies in html not disapear. It can be in shadowbox setup ? Thank you
JohnH

Re: When I open Shadowbox flash in html disappear

Reply Threaded More More options
Print post
Permalink
Hi Michal,

I just figured this out today.  Shadowbox sets the visibility of certain elements on the html page to invisible when the overlay appears.  To fix this do the following,

Open shadowbox.js and scroll down to line 1414 (assuming shadowbox 2.0 code)
You should see a block of code that contains this line

        var hide = ['select', 'object', 'embed']; // tags to hide

remove the 'object' and 'embed' tags and shadowbox will no longer hide your flash elements

        var hide = ['select']; // tags to hide

hope this helps!

-John
Preston

Re: When I open Shadowbox flash in html disappear

Reply Threaded More More options
Print post
Permalink
ON Shadowbox 3.0rc is in the line 864

v_cache = [];
                    each(['select', 'object', 'embed', 'canvas'], function(tag){
                        each(document.getElementsByTagName(tag), function(el){
                            v_cache.push([el, el.style.visibility || 'visible']);
                            el.style.visibility = 'hidden';
                        });

------------------------
v_cache = [];
                    each(['select', 'canvas'], function(tag){
                        each(document.getElementsByTagName(tag), function(el){
                            v_cache.push([el, el.style.visibility || 'visible']);
                            el.style.visibility = 'hidden';
                        });

Leandro

Re: When I open Shadowbox flash in html disappear

Reply Threaded More More options
Print post
Permalink
On Shadowbox 3.0:

Open shadowbox.js and scroll down to line 1751

>> Change this line:

troubleElements: ['select', 'object', 'embed', 'canvas']

>> To this:

troubleElements: ['select', 'canvas']

;)