UNKNOWN PLAYER UNDEFINED: Shadowbox IMG Gallery

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

UNKNOWN PLAYER UNDEFINED: Shadowbox IMG Gallery

deco10
I'm trying to create an image gallery from javascript code and i keep getting the following error message in firebug: UNKNOWN PLAYER UNDEFINED.

My code is this:

function openTopSBX(){
var sbx = window.parent.Shadowbox;
var img1={
        player:     'img',
        content:    'images/9.jpg'
    };  

var img2={
        player:     'img',
        content:    'images/2.jpg'
    };
sbx.open([img1,img2], {options:{continuous: true}});
}

If i can get shadowbox to open a single image by saying sbx.open(img1), but when i put the sq brackets in things start going wrong. Any ideas?
Reply | Threaded
Open this post in threaded view
|

Re: UNKNOWN PLAYER UNDEFINED: Shadowbox IMG Gallery

deco10
ok, it seems to be the case that you can't open a gallery in an iframe, has anyone else had the same problems?