Using Shadobox as a part of a function

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Using Shadobox as a part of a function

Hey  Guys!
Is posible to use a return value  from shadowbox to a variable function?
for example...

Shadowbox.init({ language: "es", players:  ['html', 'iframe'] });

function OpenShadow(){
var number ={
            content:    '<iframe src="prueba2.php" style="border: 0; width: 100%; height: 100%" >',
            player:     "html",
            width:      500,
            height:     600,
                        options: {modal: false, displayNav: true, enableKeys: true}
// Code after close shadowbox !!
<input type="button" value="Open" onClick="OpenShadow();" >

i wanna follow with the function OpenShadow after sending a value and closing the shadowbox.
Thanks to all!!