使用图像重置按钮 [英] Using image for reset button

查看:108
本文介绍了使用图像重置按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将图像用于重置按钮的最佳做法是什么?

不幸的是,我们不能使用< input type =" image" src =" ..."在这种情况下。


任何来自网络的有用教程都将不胜感激。


我跑了一个谷歌搜索,但很多使用我的脚本类型垃圾网站

正在出现。


祝你好运,

Animesh

What''s the best practice for using an image for a reset button?
Unfortunately, we cannot use <input type="image" src="..."in this case.

Any helpful tutorial from the web will be appreciated.

I ran a google search, but a lot of "use my script" type junk websites
are showing up.

Best regards,
Animesh

推荐答案

你可以简单地添加一个图像,并给它一个onclick事件来清除

表单数据


文件。 FormName.reset();


6月21日下午3:34,Animesh K< animesh1 ... @ gmail.comwrote:
You can simply add an image, and give it an onclick event to clear the
form data

document.FormName.reset();

On Jun 21, 3:34 pm, Animesh K <animesh1...@gmail.comwrote:

将图像用于重置按钮的最佳做法是什么?

不幸的是,我们不能使用< input type =" image" src =" ..."在这种情况下。


任何来自网络的有用教程都将不胜感激。


我跑了一个谷歌搜索,但很多使用我的脚本类型垃圾网站

正在出现。


祝你好运,

Animesh
What''s the best practice for using an image for a reset button?
Unfortunately, we cannot use <input type="image" src="..."in this case.

Any helpful tutorial from the web will be appreciated.

I ran a google search, but a lot of "use my script" type junk websites
are showing up.

Best regards,
Animesh


ed写道:
ed wrote:

你可以简单地添加一个图像,并给它一个onclick事件来清除

表单数据


document.FormName.reset();

You can simply add an image, and give it an onclick event to clear the
form data

document.FormName.reset();



让我成为更加具体。我有一个联系我们通过使其可见而浮动一个

隐形表格的链接。我想把中止

按钮表格应该重置表格以及制作表格

隐形


我确实设法达到了效果(请参阅联系我们链接在

以下页面:

http://www.stutimandal.com/gif_misc/...ma_stotram.php





但我是不确定这是否是在

手上执行任务的最佳方法。显然它很有用。


顺便说一下,页面正在构建中,因此可能会出现一些错误,

。如果你发现一些令人讨厌的东西,请告诉我。


祝你好运,

Animesh

Let me be more specific. I have a "contact us" link which floats an
invisible form by making it visible. I want to put an "abort" button on
the form so that should "reset" the form as well as "make the form
invisible"

I did manage to achieve the effect (see contact us link at the bottom of
the following page:

http://www.stutimandal.com/gif_misc/...ma_stotram.php

)

But I am not sure if this is the best method to implement the task at
hand. It works, obviously.

By the way, the page is under construction, so there may be some errors,
here and there. If you find something nasty, please let me know.

Best regards,
Animesh


>
>



< snip>

<snip>


>
>


21月14日,14:34,Animesh K< animesh1 ... @ gmail.comwrote:
On 21 jun, 14:34, Animesh K <animesh1...@gmail.comwrote:

使用图像作为重置按钮的最佳做法是什么?

不幸的是,我们不能使用< input type =" image" src =" ..."在这种情况下。


任何来自网络的有用教程都将不胜感激。


我跑了一个谷歌搜索,但很多使用我的脚本类型垃圾网站

出现。


祝你好运,

Animesh
What''s the best practice for using an image for a reset button?
Unfortunately, we cannot use <input type="image" src="..."in this case.

Any helpful tutorial from the web will be appreciated.

I ran a google search, but a lot of "use my script" type junk websites
are showing up.

Best regards,
Animesh



< form name =" theform">

< input type =" text"大小= QUOT; 10" ID = QUOT;更远"名称= QUOT;更远" value =" defaut

value" />

< a onclick =" document.theform.reset(); return false;"

href ="#">< img src =" test.png"边界=" 0" ALT ="" width =" 283"

height =" 40" />< / a>

< / form>

<form name="theform">
<input type="text" size="10" id="afield" name="afield" value="defaut
value" />
<a onclick="document.theform.reset();return false;"
href="#"><img src="test.png" border="0" alt="" width="283"
height="40" /></a>
</form>


这篇关于使用图像重置按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆