1. Move selection of form text input: In the text input field, if a prompt is added, the visitor often needs to select and delete it with the mouse, and then enter useful information. In fact, as long as you add onMouseOver=this.focus() onFocus=this.select() code to <textarea>, everything will become much simpler, such as:
The following is the quoted content: <textarea name=textarea wrap=virtual rows=2 cols=22 onMouseOver=this.focus() onFocus=this.select()>Please fill in your name</textarea> |
Similarly, you can add code to <input>.
2. Click to delete the form input unit: This column has the same function as above, but the mouse changes slightly, and you need to click instead of the mouse above. like:
| The following is the quoted content: <input type=text name=address size=19 value=Please fill in your email onFocus=this.value=''> |
After clicking on the input unit, the prompt message will be deleted. Isn’t it very convenient?
3. Border settings of form input unit: Changing the traditional form unit border will make your homepage look a lot more colorful. like:
| The following is the quoted content: <input type=radio name=action value=subscribe checked style=BORDER-BOTTOM: dashed 1px; BORDER-LEFT: dashed 1px; BORDER-RIGHT: dashed 1px; BORDER-TOP: dashed 1px; background-color: #FEF5C8> |
Where style=*** is the left and right upper and lower color settings and is suitable for other units.
4. Text settings of form input unit: The font of the unit in the form can be modified, such as:
| The following is the quoted content: <input type=text name=address size=19 value=Please fill in your name style=font-family:verdana;font-size:10px > |