像文本框中的提示字符,鼠标点击进去就消失这样效果怎么用代码实现呢,谢谢
1个回答
展开全部
<input type='穗亩text'早梁 value='如:www.2345.com' style="color:#aaaaaa" onfocus="javascript:if
(this.value=='如:www.2345.com'){this.value='';this.style.color='陆族运#000000';}" onblur="javascript:if
(this.value==''){this.value='如:www.2345.com';this.style.color='#aaaaaa';}">
(this.value=='如:www.2345.com'){this.value='';this.style.color='陆族运#000000';}" onblur="javascript:if
(this.value==''){this.value='如:www.2345.com';this.style.color='#aaaaaa';}">
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询