虽然是开发日记,写到这的时候已经写完了,其实其中有很多时候不是在忙这个,只是昨天和前天发狠力写完了他。之前吊着这个主要是为了讹诈舍友,应为这是舍友毕设论文的一部分,写一天代码给一天饭前,完全零时工的节奏,于是拖了个把月才写完,写完也不是因为良心发现,完全是阿莲说:“你的任务很重哦”,顿时满血,一鼓作气写完了,舍友说还是找阿莲有效点。
这个是目录的截图
打开index.html之后,看到个这
这个是HTML文件
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="./css/HoHoMapStyle.css" />
<style type="text/css">
</style>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.5&ak=104bab63a5987e0d594b5967a3fa4510">
</script>
<script type="text/javascript" src="http://api.map.baidu.com/library/DistanceTool/1.2/src/DistanceTool_min.js">
</script>
<script type="text/javascript" src="http://api.map.baidu.com/library/SearchControl/1.4/src/SearchControl_min.js">
</script>
<link rel="stylesheet" href="http://api.map.baidu.com/library/SearchControl/1.4/src/SearchControl_min.css" />
<script type="text/javascript" src="http://api.map.baidu.com/library/CityList/1.2/src/CityList_min.js"></script>
<script type="text/javascript" src=".\js\Ini.js"></script>
<title>HoHoMap</title>
</head>
<body>
<div id="l-map"></div>
<div id="r-input">
<form>
选择图标<br />
<input type="radio" name="ico" value=0 />无图标
<br />
<input type="radio" name="ico" value=1 />默认
<br />
<input type="radio" name="ico" value=2 />行人
<br />
<input type="radio" name="ico" value=3 />车子
<select id="CarRange" name="CarRange">
<option value=0 selected>0m</option>
<option value=500 >500m</option>
<option value=1000 >1000m</option>
</select>
<select id="CarDir" name="CarDir">
<option value=0 selected>向上和向右</option>
<option value=1 >向下和向左</option>
</select>
<br />
<input type="radio" name="ico" value=4 />基站
<select id="BaseRange" name="BaseRange">
<option value=500 selected>500m</option>
<option value=1000 >1000m</option>
<option value=2000 >2000m</option>
<option value=3000 >3000m</option>
<option value=10000>10000m</option>
</select>
<br />
<input type="radio" name="ico" value=5 />交通灯
<br />
<input type="radio" name="ico" value=6 />事故发生
</form>
<form>
<label for="City">城市跳转:</label>
<input id="City" name="City" type="text" value="北京">
<input id="CityButton" name="CityButton" type="button" value="查询" >
</form>
</div>
<div id="r-output">
<form>
<label for="Stalng" >起点lng:</label>
<input type="text" id="Stalng" name="Stalng" />
<br />
<label for="Stalat" >起点lat:</label>
<input type="text" id="Stalat" name="Stalat" />
<br />
<label for="Endlng" >终点lng:</label>
<input type="text" id="Endlng" name="Endlng" />
<br />
<label for="Endlat" >终点lat:</label>
<input type="text" id="Endlat" name="Endlat" />
</form>
<label for="AfterTime" >经过</label>
<input type="text" id="AfterTime" name="AfterTime" size="1" maxlength="3" />
<label for="AfterTime" >分钟到达预定地点</label>
<select id="LineVisable" name="LineVisable" >
<option value=0 selected>路径保持</option>
<option value=1 >路径消失</option>
</select>
<select id="CarSpeed" >
<option value=100 selected>100ms</option>
<option value=200>200ms</option>
<option value=300>300ms</option>
<option value=1000>1000s</option>
</select>
<br />
<label for="LightSolution" >红绿灯方案</label>
<select id="LightSolution" name="LightSolution">
<option value=0 selected>Red=3S Yellow=1s Green=3s</option>
<option value=1 >Red=15s Yellow=5s Green=15s</option>
<option value=2 >Red=20s Yellow=5s Green=20s</option>
<option value=3 >Red=30s Yellow=5s Green=15s</option>
<option value=4 >Red=30s Yellow=5s Green=10s</option>
</select>
</div>
</body>
</html>
<script type="text/javascript" >
window.οnlοad=InitMap();
</script>