Jump to content

How Can I See Yhe Map In A Full Screen With A Button?


didier
 Share

Recommended Posts

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

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

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

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...