我将创建一个使用标准图像作为提交按钮的HTML联系表单。
以下是HTML代码:
静态提交按钮图像还可以,但是我希望在鼠标悬停时将其更改为btn_submit-over.png。
我熟悉使用css精灵的鼠标悬停,但它们不适用于提交按钮。我需要一些帮助。
谢谢!
<form action="#">
<fieldset>
<input type="text" name="name" value="FULL NAME" onfocus="if (this.value=='FULL NAME') this.value='';"/>
<input type="text" name="" value="PHONE NUMBER" onfocus="if (this.value=='PHONE NUMBER') this.value='';"/>
<input type="text" name="" value="EMAIL" onfocus="if (this.value=='EMAIL') this.value='';"/>
<input type="text" name="" value="MOVE DATE" onfocus="if (this.value=='MOVE DATE') this.value='';"/>
<input type="text" name="" value="ORIGINATING ADDRESS" onfocus="if (this.value=='ORIGINATING ADDRESS') this.value='';"/>
<input type="text" name="" value="DESTINATION ADDRESS" onfocus="if (this.value=='DESTINATION ADDRESS') this.value='';"/>
<select name="type">
<option value="Private">Private</option>
<option value="Commercial">Commercial</option>
</select>
<input id="quoteSubmit" type="image" src="_images/btn_submit.png" alt="" />
</fieldset>
</form>
静态提交按钮图像还可以,但是我希望在鼠标悬停时将其更改为btn_submit-over.png。
我熟悉使用css精灵的鼠标悬停,但它们不适用于提交按钮。我需要一些帮助。
谢谢!