以被简化的 递交问题?

xddy 2002-05-12 04:45:42
mapshow.asp 如下

<HTML>
<HEAD>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</HEAD>
<%


for i=0 to 10000

i=2*i

next




%>
<body topmargin="0" leftmargin="0" onload="javascript:showHeadOption()" >
<img border=0 class="SearchPoint" height="480" id="eventsourse" src="maplayer.jpg" useMap="#SystemMap" width="620" onclick="javascrip:mapClick()">
<MAP NAME="SystemMap">
<area shape="CIRCLE" href="javascript:" coords="380 , 201 , 104" onclick="javascript:mousePoint(this);" >

</MAP>
<FORM name="mapx" method=get action="mapshow.asp" >
<!--当前操作--> <INPUT type="text" name="tool">


</FORM>
<SCRIPT language=javascript >
function mapClick()
{

alert("map event")
alert(document.mapx.action)
document.mapx.submit();


}
function mousePoint(obj)
{

alert("area event")


}


</SCRIPT>

</BODY>
</HTML>


当我点击图片任何位置都会递交本页可是我点击此AREA位置时不会递交

这是为什么?有什么办法?
...全文
49 10 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
xddy 2002-05-14
  • 打赏
  • 举报
回复
我一直在线(我急)。up一下
xddy 2002-05-13
  • 打赏
  • 举报
回复
我一直在线(我急)。

各位朋友,只要在同一目录下随便加名为maplayer.jpg的图片,就可以测试。
离子漂浮物 2002-05-13
  • 打赏
  • 举报
回复
document.mapx.submit();???

你改成mapx.submit()试试。
BrightEye 2002-05-13
  • 打赏
  • 举报
回复
象你说的,在mousePoint()加上document.mapx.submit(),用post方法提交.
离子漂浮物 2002-05-13
  • 打赏
  • 举报
回复
document.mapx.submit();???

你改成mapx.submit()试试。
xddy 2002-05-13
  • 打赏
  • 举报
回复
我一直在线(我急)。

在mousePoint()加上document.mapx.submit();
也不执行递交。
xddy 2002-05-13
  • 打赏
  • 举报
回复
TO :net_lover(孟子E章)



其实我是希望。点击area 时同样触发form1.submit。
而且根据其ALERT信息来看,点击AREA时
alert("map event")
alert(document.mapx.action)
document.mapx.submit();

是被执行的

xddy 2002-05-13
  • 打赏
  • 举报
回复
朋友,既然来了就帮个忙UP一下了
超级大笨狼 2002-05-12
  • 打赏
  • 举报
回复
<area id=a1>
<script language=vbs>
sub a1_onclick
form1.submit
alert "就这么简单,给分!不给分我哭!!"
end sub
</script >
孟子E章 2002-05-12
  • 打赏
  • 举报
回复
因为:
<img border=0 class="SearchPoint" height="480" id="eventsourse" src="maplayer.jpg" useMap="#SystemMap" width="620" onclick="javascrip:mapClick()">
有click事件啊。因为area的click事件执行mousePoint

28,409

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧