Share your advanced knowledge/code with the community.
pf shadoko
 
Posts: 72
Joined: Thu May 26, 2016 11:09 am

TextGadget: you can put any html content !!

by pf shadoko Fri Oct 13, 2017 12:10 pm

Hi,

I tried in vain by many means to display a video allowing the full screen via a webgadget.

but using a textgadget...

Code: Select all
OpenWindow(0, 0, 0, 800, 450, "Méli Mélo - Bzz !", #PB_Window_ScreenCentered)
TextGadget(1,0,0,800,450,"<iframe width='800' height='450' src='https://www.youtube.com/embed/zaIwKNyzxgY' frameborder='0' allowfullscreen></iframe>")


or

Code: Select all
OpenWindow(0, 0, 0, 800, 450, "Méli Mélo - Bzz !", #PB_Window_ScreenCentered)
img.s=Chr(34)+"https://cdn.pixabay.com/photo/2017/10/12/21/22/pattern-2846017__340.jpg')"+Chr(34)
TextGadget(1,0,0,800,450,"<iframe width='800' height='450' style='background-image:url("+img+"></iframe>")

useful
 
Posts: 26
Joined: Tue Feb 25, 2014 1:15 pm

Re: TextGadget: you can put any html content !!

by useful Fri Oct 13, 2017 12:25 pm

!!!!!!!!!!!!!!!!!!!! :shock: :mrgreen:
2B or not 2B = FF
bbanelli
 
Posts: 96
Joined: Mon Jul 13, 2015 7:40 am

Re: TextGadget: you can put any html content !!

by bbanelli Fri Oct 13, 2017 6:50 pm

Wow! Lifehack. :) Is this "expected" behavior and could it be used as long term stable solution?
"If you lie to the compiler, it will get its revenge."
Henry Spencer
http://www.pci-z.com/
the.weavster
 
Posts: 128
Joined: Sat Mar 01, 2014 3:02 pm

Re: TextGadget: you can put any html content !!

by the.weavster Sat Oct 14, 2017 8:21 am

bbanelli wrote:Is this "expected" behavior and could it be used as long term stable solution?
I also hope this functionality will remain, it's very cool.

Thanks @pf shadoko for demonstrating this.
Fred
Site Admin
 
Posts: 1011
Joined: Mon Feb 24, 2014 10:51 am

Re: TextGadget: you can put any html content !!

by Fred Sat Oct 14, 2017 9:12 am

Yes, it will remain. SB is HTML based and it won't change.
Return to Tricks 'n' Tips

Who is online

Users browsing this forum: No registered users and 1 guest