把图片当成按钮,如
<input name="imageField" type="image" src="login_bg1.jpg" width="1024" height="700" border="0">
点击它就会提交,服务器会得到
imageField_x 和 imageField_y 两个提交的值,就是点击的 x,y 点
<input name="imageField" type="image" src="login_bg1.jpg" width="1024" height="700" border="0">
点击它就会提交,服务器会得到
imageField_x 和 imageField_y 两个提交的值,就是点击的 x,y 点
(window.event.x,window.event.y)是屏幕绝对坐标
(window.event.x+document.body.scrollLeft,window.event.y+document.body.scrollTop) 是页面坐标