+ -
当前位置:首页 → 问答吧 → 请教 ******************************

请教 ******************************

时间:2011-06-28

来源:互联网

请教下html按钮在html内部调用如何实现 例子如下
<form action="showmarkers.php" method="POST" target='google'>
<TD align="rigter" >City name : <INPUT size=15 name="ncc" class="aa"></TD></TR>
<input type="submit" value="search">
</form>
<br />
</div> //实现按钮功能 并调用php文件 php文件包含地图和数据库等方法
   
<div id="mapContainer" style="height:250px; width:250px;" align="left">
<iframe src="showmarkers.php" width="300" height="300" marginheight="5px" ></iframe></div>//实现从php调用地图

问题:我点击按钮跳到新的页面 而不能作用于iframe调用的地图,如何解决?

作者: dix2012   发布时间: 2011-06-28

有没有会的,谢谢了

作者: dix2012   发布时间: 2011-06-28

<form action="showmarkers.php" method="POST" target='google'>
<TD align="rigter" >City name : <INPUT size=15 name="ncc" class="aa"></TD></TR>
<input name="按钮" type="button" value="search" onClick="document.getElementById('ditu').src='showmarkers.php?key='+ncc.value;">
</form>
<br />
<script>
</script>
</div> //实现按钮功能 并调用php文件 php文件包含地图和数据库等方法
   
<div id="mapContainer" style="height:250px; width:250px;" align="left">
<iframe src="showmarkers.php" width="300" height="300" marginheight="5px" id="ditu" ></iframe></div>




蚂蚁学院

作者: bear63   发布时间: 2011-06-28