What are two possible code segments you can use to achieve this goal?

Your customer disables all standard mouse events on a Virtual Earth 6.0 map. You need to add a double-click function on the left mouse button for the map. What are two possible code segments you can use to achieve this goal? (Each correct answer presents a complete solution.
Choose two.)

Your customer disables all standard mouse events on a Virtual Earth 6.0 map. You need to add a double-click function on the left mouse button for the map. What are two possible code segments you can use to achieve this goal? (Each correct answer presents a complete solution.
Choose two.)

A.
function DblClickHandler(e) { alert(“DoubleClick”); } function init() { map = new VEMap(‘myMap’); map.LoadMap(); map.AttachEvent(“onmousedown”,DblClickHandler); }

B.
function DblClickHandler(e) { alert(“DoubleClick”); return false; } function init() { map = new VEMap(‘myMap’); map.LoadMap(); map.AttachEvent(“ondoubleclick”,DblClickHandler); }

C.
function DblClickHandler(e) { alert(“DoubleClick”); return true; } function init() { map = new VEMap(‘myMap’); map.LoadMap(); map.AttachEvent(“ondoubleclick”,DblClickHandler); }

D.
function DblClickHandler(e) { alert(“DoubleClick”); } function init() { map = new VEMap(‘myMap’); map.LoadMap(); map.AttachEvent(“ondoubleclick”,DblClickHandler); }

E.
function DblClickHandler(e) { alert(“DoubleClick”); return false; } function init() { map = new VEMap(‘myMap’); map.LoadMap(); map.AttachEvent(“ondoubleclick”,init); }



Leave a Reply 0

Your email address will not be published. Required fields are marked *