Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #16247
| From | "J.R." <groups_jr-1@yahoo.com.br> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: button fullscreen |
| Date | 2012-09-29 11:08 -0300 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <k46vde$ess$1@speranza.aioe.org> (permalink) |
| References | <5066b729$0$1993$426a74cc@news.free.fr> |
On 29/09/2012 05:54, jmrw wrote:
> http://www.jmrw.com/Chess/Tableau_echecs/index.htm#diaporama
>
> To set mon slideshow in full screen I have found this script :
>
> <script language="JavaScript">
> function fullScreen() {
> var el = document.documentElement
> , rfs = // for newer Webkit and Firefox
> el.requestFullScreen
> || el.webkitRequestFullScreen
> || el.mozRequestFullScreen
> || el.msRequestFullScreen
> ;
> if(typeof rfs!="undefined" && rfs){
> rfs.call(el);
> } else if(typeof window.ActiveXObject!="undefined"){
> // for Internet Explorer
> var wscript = new ActiveXObject("WScript.Shell");
> if (wscript!=null) {
> wscript.SendKeys("{F11}");
> }
> }
>
> }
> // End -->
> </script>
>
> associated with the button
> <button id="but_fullscreen"
> style=background:whonclick="fullScreen('http://google.com');"> Full
> Screen </button>
>
> With Google chrome it is ok
>
> with Firefox I cannot navigate anymore.
>
> With Intenet Explorer it 's ok localy but does'nt work on the distant.
>
> What to modify for it works with Firefox and Intenet Explorer?
According to the MDC, requestFullScreen is still an experimental technology:
<https://developer.mozilla.org/en-US/docs/DOM/Using_full-screen_mode>
And it is not a W3C Standard nor is it on the W3C Standards Track.
So I think you should not use it in a production environment.
--
Joao Rodrigues (J.R.)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
button fullscreen "jmrw" <jmrw@free.fr> - 2012-09-29 10:54 +0200
Re: button fullscreen "jmrw" <jmrw@free.fr> - 2012-09-29 15:52 +0200
Re: button fullscreen "J.R." <groups_jr-1@yahoo.com.br> - 2012-09-29 11:08 -0300
Re: button fullscreen Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-29 18:58 +0200
csiph-web