You are creating an application that will display a Virtual Earth 6.0 map inside a pop-up window that will be viewed by using Microsoft Internet Explorer.
You write the following code segment.
01 var map = null;
02 function GetMap(){
03 map = new VEMap(‘Map’);
04 map.LoadMap();
05 …
06 }
You need to ensure that the following requirements are met:
The height of the map is half the height of the pop-up window. The width of the map is one-third the width of the pop-up window.
Which code segment should you insert at line 05?
A.
document.getElementById(‘Map’).style.width = document.body.offsetWidth/3; document.getElementById(‘Map’).style.height = document.body.offsetHeight/2;
B.
map.Resize(document.body.style.width/3, document.body.style.height/2);
C.
map.Resize(document.body.offsetWidth/3, document.body.offsetHeight/2);
D.
document.getElementById(‘Map’).style.width =
document.body.style.width/3;
document.getElementById(‘Map’).style.height =
document.body.style.height/2;