<html>
<head>
<style type="text/css">
<!--
#base1 {
background-color: #F3F2F6;
width: 10px;
height: 10px;
position:absolute;
}
//-->
</style>
</head>
<script language="javascript" >
/* x1 , y1 (점A) x2 , y2(점B) 두 점사이의 거리를 구하라~
*/
var ppp = 0;
function cal_exe(){
var x1 = 10.3;
var y1 = 10.3;
var x2 = 20.2;
var y2 = 20.2;
var dis_x = x1 - x2;
var dix_y = y1 - y2;
result1 = Math.sqrt(Math.abs(dis_x*dis_x) + Math.abs(dix_y*dix_y));
console.log( result1 );
}
</script>
<body >
<div id='base1' ></div>
<div id="container">
</div>
<a href="javascript:cal_exe();" >bbbbb</a>
</body>
</html>