输入框样式

<script language="javascript" type="text/javascript">

function glb_searchTextOnfocus(obj) {

         if (obj.value == '请输入您想要的作品...')

                   obj.value = '';

         obj.style.color = '#333';

}

function glb_searchTextOnBlur(obj) {

         if (obj.value == '') {

                   obj.value = '请输入您想要的作品...';

                   obj.style.color = '#98BC00';

         } else {

                   obj.style.color = '#333';

         }

}

</script>

<input name="q" type="text" class="searchkey " value="请输入您想要的作品..." onfocus="glb_searchTextOnfocus(this);"  onblur="glb_searchTextOnBlur(this);" maxlength="70" />

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-11
  • 2021-10-07
  • 2022-12-23
  • 2022-01-03
猜你喜欢
  • 2022-12-23
  • 2021-12-16
  • 2022-02-12
  • 2022-01-31
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案