Page 1 of 1

SoundCloud via LightBox

Posted: 28 Sep 2012, 15:41
by Brazilia
Hello,

I try to open an Lightbox window with a sound file via SoundCloud

I try with this exemple of code (from soundcloud of course) :

<iframe width="100%" height="166" scrolling="no" frameborder="no" src="http://w.soundcloud.com/player/?url=htt ... "></iframe>

How can I mix this with the code of LightBox (javascript:lightbox('https://www.photo.gallery', {iframe:true})

Thanks.

Re: SoundCloud via LightBox

Posted: 29 Sep 2012, 00:17
by mjau-mjau
Since the lightbox feature already includes the iframe, you should be able to simply refer the URL inside the <iframe>:
Code
javascript:lightbox('http://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F40734013&auto_play=false&show_artwork=true&color=000000', {iframe:true})

Re: SoundCloud via LightBox

Posted: 29 Sep 2012, 08:51
by Brazilia
Thanks !

and for to have a LightBox with the dimension of the soundcloud window : 100x160 px. what can I change for that ?

Thanks a lot for your help

Re: SoundCloud via LightBox

Posted: 29 Sep 2012, 14:50
by Brazilia
I have found !
Code
javascript:lightbox('http://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F40734013&auto_play=false&show_artwork=true&color=000000', {iframe:true, innerWidth:'100', innerHeight: '60'})
Saluation