Search…

X3 Photo Gallery Support Forums

Search…
 
Brazilia
Topic Author
Posts: 19
Joined: 09 Sep 2011, 14:15

SoundCloud via LightBox

28 Sep 2012, 15:41

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.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13999
Joined: 30 Sep 2006, 03:37

Re: SoundCloud via LightBox

29 Sep 2012, 00:17

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})
 
Brazilia
Topic Author
Posts: 19
Joined: 09 Sep 2011, 14:15

Re: SoundCloud via LightBox

29 Sep 2012, 08:51

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
 
Brazilia
Topic Author
Posts: 19
Joined: 09 Sep 2011, 14:15

Re: SoundCloud via LightBox

29 Sep 2012, 14:50

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