Jump to content

Question/Help regarding a DIV and Google Maps


mark110384

Recommended Posts

Is there any way that u can set a google map to transparent like what you would use for Flash wmode. My aim is to allow the user to select a log in opition this then open a hidden DIV that expands to fill the whole browser with a log in box centered, however the google maps API looks as though it is layered above the hidden div? Thanks

Not sure if this would work, but how about:

 

Put the following just below the <BODY> tag:

 

<div id='LoginPage'>

       <div id='LoginText'>
       Stick the form code in here and all the associated blurb.
       </div>
     </div>

 

Use the following css code:

#LoginPage {
position: absolute;
z-index: 100;
background-color: #000;
filter:alpha(opacity=80);
-moz-opacity: 0.8;
opacity: 0.8;
top: 0%;
left: 0;
height: 100%;
width: 100%;
text-align: center;
line-height: 0;
display: none;
}

#LoginText {
 position: relative;
 font-family: Verdana, Arial;
 font-size: 12px;
 top: 50%;
 color: #fff;
  text-align: center;  
}

 

Then, edit the login link to be:

 

<a href="#" onclick="document.getElementById('LoginPage').style.display = 'block';">Login Link</a>

 

 

The above will cause the entire page to go an opaque black colour and have the login content in the middle of the window.

 

I'm no Javascript expert but this works on a simple HTML page, obviously you will need to try it and modify it to suit your needs.

 

Hope it helps.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.