<script type="text/javascript">
window.onload = function () {
var ss = document.getElementById("txt");
ss.onfocus = function () {
this.value = "";
ss.style.color = "black";
}
ss.onblur = function () {
if (this.value.length == 0) {
this.value = "请输入搜所内容";
ss.style.color = "Gray";
}
}
}
</script>

<script type="text/javascript">
window.onload = function () {
var ss = document.getElementById("txt");
ss.onfocus = function () {
this.value = "";
ss.style.color = "black";
}
ss.onblur = function () {
if (this.value.length == 0) {
this.value = "请输入搜所内容";
ss.style.color = "Gray";
}
}
}
</script>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2021-09-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-29
  • 2021-12-26
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案