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="预设文字" 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>


相关文章:

  • 2021-07-23
  • 2023-02-18
  • 2022-12-23
  • 2021-08-21
  • 2021-03-31
  • 2021-07-01
  • 2021-08-23
猜你喜欢
  • 2021-06-30
  • 2021-10-29
  • 2022-12-23
  • 2022-02-26
  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案