function autoMap() { var h = map_container.offsetWidth; map_container.setAttribute('style', 'height:' + ( h * 0.6 ) + 'px;'); }
<
body
onresize=
"autoMap()"
>
</
body
>
function autoMap() { var h = map_container.offsetWidth; map_container.setAttribute('style', 'height:' + ( h * 0.6 ) + 'px;'); }