After google earth plugin is loaded on a web page, google earth is permanently kept at the top layer, that is, div encapsulation, setting z-index does not allow other controls to appear on the upper layer of google earth.
However, you can now use the prototype window written on the http://prototype-window.xilinus.com to achieve, on the web page, a new dialog pop-up overwrites on google earth.
The usage is as follows:
It's easy to use, just include two javascripts and one css (more if you want different skins ).
<Script type = "text/javascript" src = "/javascripts/prototype. js"> </script>
<Script type = "text/javascript" src = "/javascripts/window. js"> </script>
<Link href = "/stylesheets/themes/default.css" rel = "stylesheet" type = "text/css"/>
<! -- Add this to have a specific theme -->
<Link href = "themes/nuncio.css" rel = "stylesheet" type = "text/css"/>
To create a window, you just have to instancate a Window object with some optional parameters, set innerHTML of the window main content and call show () or showCenter () function. check out the samples tab with more sample codes.
Win = new Window ({className: "nuncio", title: "demo3", width: 200, height: 150, destroyOnClose: true, recenterAuto: false });
Win. getContent (). update ("Win. showCenter ();
The running result is as follows:
Author: TinyKing"