1.
<SCRIPT>
Function onenter (field) {If (field. value = field. defaultvalue) {field. value = "";}}
Function onexit (field) {If (field. value = "") {field. value = field. defaultvalue ;}}
</SCRIPT>
<Input type = text value = "default text" onfocus = onenter (this) onblur = onexit (this)>
2.
<Style type = "text/CSS">
<! --
Input {border: 1px solid # c00 ;}
Input {Star: expression (
Onmouseover = function () {This. style. bordercolor = "#060 "},
Onmouseout = function () {This. style. bordercolor = "# c00 "})}
-->
</Style>
3.
<Style type = "text/CSS">
<! --
Input {border: 1px solid # c00; Background: # FFF ;}
Input {Star: expression (
Onmouseover = function () {This. style. backgroundcolor = "# Eee "},
Onmouseout = function () {This. style. backgroundcolor = "# fff "})}
. In40 {width: 40px ;}
. In80 {width: 80px ;}
. In120 {width: 120px ;}
. In200 {width: 200px ;}
-->
</Style>