input 水印
来源:互联网 发布:it狂人女主角 编辑:程序博客网 时间:2024/06/09 18:35
水印
HTML
<input id="txtname" type="text" runat="server" value="用户姓名" onblur="water(this)" onfocus="waterfocus(this)" />
水印js
var text = "用户姓名";//text水印
function water(textbox) {
if (textbox.value.length == 0) {
textbox.style.color = "gray";
textbox.value = text;
}
}
function waterfocus(textbox) {
if (textbox.value == text) {
textbox.style.color = "black";
textbox.value = "";
}
}
获得焦点
失去焦点
0 0
- input 水印
- input hint水印处理
- bootstrap File Input 多文件上传插件 删除 水印 预置
- 水印
- 水印
- 水印
- 水印
- Input
- INPUT
- input
- input()
- input
- input
- input
- input
- input
- input
- input
- viewpager中多fragment及时加载
- POJ 2594 Treasure Exploration(最小路径覆盖)
- nova虚拟机的CPU配置-关于sockets,cores,threads的限制
- C#入门教程
- 最小生成树-Prim算法和Kruskal算法
- input 水印
- JAVA常用集合框架用法详解——提高篇
- Android Studio一步步教你集成发布适配
- 在ubuntu中出现Call to undefined function: mysql_connect()
- /usr/bin/ld: cannot find -lgcc
- UltraWebGrid中列固定效果
- TensorFlow CNN 测试CIFAR-10数据集
- android studio使用记录
- iOS蓝牙开发数据实时传输