javascript实现文本自动消失

开心编程网   2010年01月26日 10:40   评论»  
<input name=”appValue1″ type=”text” onFocus=”if(this.value==’-请输入此作品原创地址相关链接地址-’)this.value=”” onBlur=”if(this.value==”)this.value=’-请输入此作品原创地址相关链接地址-’”/>
     <script type=”text/javascript”>
document.getElementById(‘appValue1′).value=”-请输入此作品原创地址相关链接地址-”;
</script>

欢迎您发表评论:

赞助商链接

最新新闻动态

友情链接

关于站点 - 联系我们 - 网站大事 - 友情链接 - 免责声明 - 意见反馈 - 网站投稿 - 站点地图
版权所有开心编程网禁止转载! Copyright © 2009-2010 All Rights Reserved. Email:hbhgfzk@126.com