1、表單文本輸入的移動選擇:在文本輸入欄中,假如加入了提示,來訪者往往要用鼠標選取後刪除,再輸入有用的信息。其實只要加入onMouseOver=this.focus() onFocus=this.select() 代碼到<textarea> 中,一切就會變得簡單多了,如:
以下為引用的內容: <textarea name=textarea wrap=virtual rows=2 cols=22 onMouseOver=this.focus() onFocus=this.select()>請填入你的姓名</textarea> |
類似的,可以加入代碼到<input>。
2、表單輸入單元點擊刪除:本列同上則作用類似,只是使用鼠標上略有變化,需要點擊而不像上則的只要鼠標覆蓋。如:
| 以下為引用的內容: <input type=text name=address size=19 value=請填入你的郵箱onFocus=this.value=''> |
點擊輸入單元後,提示信息會刪除,是不是很方便。
3、表單輸入單元的邊框設置:更改傳統的表單單元邊框,會讓你的主頁生色不少。如:
| 以下為引用的內容: <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> |
其中style=***為左右上下和背景色設置,適用於其它單元。
4、表單輸入單元的文字設置:表單中單元的字體是可以修改的,如:
| 以下為引用的內容: <input type=text name=address size=19 value=請填入你的姓名style=font-family:verdana;font-size:10px > |