将图像设置为提交按钮

Muh*_*ain 10 html webforms

我正在使用以下代码将图像设置为提交按钮

 *<input type="submit" src="submit1.jpg" alt="submit Button"onMouseOver="this.src='submit1.jpg'">*
Run Code Online (Sandbox Code Playgroud)

但我实际上并不知道整个代码中的哪个位置放置这行代码,因为我把它放在后面,但它不起作用

在哪个地方我把这个代码出现在"提交查询",但我希望它在buuto提交查询我也使用

input type="image"
Run Code Online (Sandbox Code Playgroud)

实际上我想问我从哪个地方开始这个代码"从哪一行?"

Doc*_*uie 16

将输入类型更改为图像并将值添加为提交:


<input type="image" value="submit" src="submit1.jpg" alt="submit Button" onMouseOver="this.src='submit1.jpg'">
Run Code Online (Sandbox Code Playgroud)


ale*_*rus 5

这是完整的HTML文档:

<form name="someform" action="http://www.google.com">
<input type="image" width="100" value="submit" src="image1.png" alt="submit Button" onMouseOut="this.src='image1.png'" onMouseOver="this.src='image2.png'">
</form>

请注意,"onmouseout"事件用于在鼠标未结束时将按钮置于上一个表单