didier Posted January 31, 2009 Share Posted January 31, 2009 helloon this pageVisit My Websitewe can see a map created with google earth.This page will be seen by parents of children of schools from 8 countries. many of them don't the button F11.I want to create a button to see this page in a full screen.on youtube I click on a little button to see video in a full screen, I want the same thing on my pageand I want a second button to return to a normal screen or the message " press escape to return"I don't want to open a second window, I want the same button like you tube.thanks for your helpdidier Link to comment Share on other sites More sharing options...
ProblemHelpPlease Posted January 31, 2009 Share Posted January 31, 2009 As far as I am aware google maps does not include a full screen option.Have a look at this link it. It's still in the browser window but does make full use of available space.http://www.leapbeyond.com/ric/scuba/applet...llScreenMap.htmIf you used a new window the it would be possible using window,.open and the variable fullscreen window.open('index.html','','fullscreen,scrollbars') <a href="java script:;" onclick="window.open('index.html','','fullscreen,scrollbars');">Open Window Fullscreen</a> <script type="text/javascript">function open_full() {window.open('index.html','','fullscreen,scrollbars');}window.onload=open_full;</script> Link to comment Share on other sites More sharing options...
didier Posted January 31, 2009 Author Share Posted January 31, 2009 hello thanks but if I open a new window it will be blocked by anti popup, isn't it?I've add this code <A HREF="#" onClick="window.open('google_earth.html','','fullscreen,scrollbars');return(false)"><img src="index/page index images/bouton_plein_ecran.jpg" border="0" alt="Plein ecran : Full screen"title="Plein ecran : Full screen"></A> butI'd like to do the same thing that when I press F11 excuse me for my bad englishdidier Link to comment Share on other sites More sharing options...
ProblemHelpPlease Posted January 31, 2009 Share Posted January 31, 2009 You may be able to use the same technique but use javascript to detect a keypress for f11 and make it alter the current window. It would be easier to include a toggle button to enable people to turn fullscreen on and off by changing the window property. Link to comment Share on other sites More sharing options...
didier Posted February 1, 2009 Author Share Posted February 1, 2009 HelloI don't understand.Have you a code for this?I have tried a proposition of microsoft but it's not OK: insert after<HEAD> <script language="JavaScript">window.onload = maxWindow;function maxWindow(){window.moveTo(0,0);if (document.all){ top.window.resizeTo(screen.availWidth,screen.availHeight);}else if (document.layers||document.getElementById){ if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth) { top.window.outerHeight = screen.availHeight; top.window.outerWidth = screen.availWidth; }}} Does anybody has acode to simulate the key F11?Today I have added a button which open a second windox full screen Visit My WebsiteI give the code of my page google earth : google mapthanksdidier Link to comment Share on other sites More sharing options...
justsomeguy Posted February 2, 2009 Share Posted February 2, 2009 Does anybody has acode to simulate the key F11?I don't think it's possible to do that. The reason you see buttons to do that in things like YouTube is because it uses a Flash movie player, not Javascript. Flash is able to programmatically use fullscreen mode, I don't think the same is possible using Javascript. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.