не видаиот никоково резулитата
вот как иа написал:
<tr><td colspan="5">
<!--<iframe id="ifr" src="map.php" width="700" height="500" frameborder="0"></iframe>-->
<iframe id="ifr" width="700px" height="500px"><div id="x">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1"></script>
<script type="text/javascript">
var map = null;
var pin = null;
var mode = 0;
var a1;
var a2;
var a3=123;
function Page_Load() {
map = new VEMap('mymap');
map.SetDashboardSize(VEDashboardSize.Tiny);
map.LoadMap(new VELatLong(47.0252, 28.83911), 12, VEMapStyle.Road, false, VEMapMode.Mode2D, false);
map.SetScaleBarDistanceUnit(VEDistanceUnit.Kilometers);
map.AttachEvent("onmousemove", onMapMouseMove);
map.AttachEvent("onmousedown", onMapMouseDown);
map.AttachEvent("onmouseup", onMapMouseUp);
pin = new VEShape(VEShapeType.Pushpin, new VELatLong(47.0252, 28.83911));
pin.SetCustomIcon("_img/pin.png");
map.AddShape(pin);
}
function SetPin(loc) {
pin.SetPoints(loc);
}
function onMapMouseDown(e) {
if (e.leftMouseButton && e.elementID) {
mode=1;
map.vemapcontrol.EnableGeoCommunity(true);
}
}
function onMapMouseMove(e) {
var loc = map.PixelToLatLong(new VEPixel(e.mapX, e.mapY));
if (mode==1) {
SetPin(loc);
}
}
function onMapMouseUp(e) {
if (mode==1 && e.leftMouseButton) {
map.vemapcontrol.EnableGeoCommunity(false);
mode=0;
var loc = map.PixelToLatLong(new VEPixel(e.mapX, e.mapY));
SetPin(loc);
a1 = round7dec(loc.Latitude); //вот эту переменуиу хачы сахранити!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
a2 = round7dec(loc.Longitude); //вот эту переменуиу хачы сахранити!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
parent.Latitude.value = round7dec(loc.Latitude);
parent.Longitude.value = round7dec(loc.Longitude);
}
}
function round7dec(value) {
return Math.floor(value * 1e7)/ 1e7;
}
</script>
</head>
<body onLoad="Page_Load()">
<div id="mymap" style="height:400px;width:600px;position:relative;"></div>
</body>
</html>
</div></iframe>
<script>var iframe = document.getElementById('ifr').contentDocument || document.getElementById('ifr').contentWindow.document || document.getElementById('ifr').document;
var x = iframe.getElementById('x');
alert(x.innerHTML);
document.write(x);
document.write("cucu");
</script>