使用IMG作为Submit Button

来源:互联网 发布:js array add 编辑:程序博客网 时间:2024/05/22 01:37
<cfif isdefined("form.submit.x") and isdefined("form.submit.y")>
    <cfdump var="#form#">
</cfif>
<form name="test.cfm" method="post">
    <input type="text" name="txtA" value="">
    <br>
    <input type="image" src="images/img_borrower/process/continuebuttA.gif" name="submit"  align="" >
</form>

使用IMG作为Submit Button,不能使用form.submit来判断页面是否提交,只能用form.submit.x和form.submit.y来判断。反过来说,如果看见使用了form.submit.x和form.submit.y来判断页面的提交,就能确认此submit为一个IMG。(好像是废话啊,呵呵呵)

还有一种方式:

<input type="submit"  value="" style="border:0px;cursor:hand;width:80px;background-image:url('3450038789542929712.jpg');height:20px" />  
<input type="reset"  value="" style="border:0px;cursor:hand;width:80px;background-image:url('/images/reset.gif');height:20px" />
0 0