The "display:none" of the <tr> countermands the 'width="660"
height="400"'. When the Google code asks the browser for the size of the
iframe, the browser tells it that the size is zero, and the Google code
configures the display accordingly.
If you were using the Google Maps API (which would make your post on
topic in this group) then you could issue a .checkResize() command, but
there's no equivalent of that for embedded maps.
What you could do is create the "display:none" <tr>s without maps
embedded in them, and only create the maps after the <tr> has been
changed to "display:block"
<tr id="tr_1" style="display: block;">
<td style="background-image: url(images/map_back.jpg);
background-repeat: repeat-y; padding-top: 5px; width: 680px; height:
400px;" align="center"><iframe width="660" height="400" frameborder="0"
scrolling="no" marginheight="0" marginwidth="0"
src="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode
=&q=microsoft+india&sll=28.525717,77.097588&sspn=0.160776,0.3
07617&ie=UTF8&ll=28.505581,77.097158&spn=0.038392,0.076904&am
p;z=14&iwloc=A&cid=4217398262333743216&output=embed"></iframe
>
</td>
</tr>
<tr id="tr_2" style="display: none;"> </tr>
<tr id="tr_3" style="display: none;"> </tr>
<tr id="tr_4" style="display: none;"> </tr>
<tr id="tr_5" style="display: none;"> </tr>
var map_loaded = [];
map_loaded["tr_1"] = true;
function togglescope(id){
hideallmap();
document.getElementById(id).style.display = "block";
document.getElementById("td_"+id).className = "map_link2";
if (!loaded(id)) {
if (id == "tr_2") {
document.getElementById(id).innerHTML = '<td ... </td>';
}
if (id == "tr_3") {
document.getElementById(id).innerHTML = '<td ... </td>';
}
if (id == "tr_4") {
document.getElementById(id).innerHTML = '<td ... </td>';
}
if (id == "tr_5") {
document.getElementById(id).innerHTML = '<td ... </td>';
}
loaded(id) = true;
}
}
--
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---