惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Blog of Author Tim Ferriss
S
Securelist
D
Docker
The Register - Security
The Register - Security
GbyAI
GbyAI
Recorded Future
Recorded Future
Engineering at Meta
Engineering at Meta
Stack Overflow Blog
Stack Overflow Blog
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
罗磊的独立博客
博客园 - 【当耐特】
F
Full Disclosure
WordPress大学
WordPress大学
腾讯CDC
小众软件
小众软件
大猫的无限游戏
大猫的无限游戏
D
DataBreaches.Net
SecWiki News
SecWiki News
L
Lohrmann on Cybersecurity
I
InfoQ
MyScale Blog
MyScale Blog
量子位
Cyberwarzone
Cyberwarzone
博客园 - 三生石上(FineUI控件)
The Hacker News
The Hacker News
F
Fortinet All Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Jina AI
Jina AI
博客园_首页
H
Help Net Security
K
Kaspersky official blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Webroot Blog
Webroot Blog
Blog — PlanetScale
Blog — PlanetScale
V
Vulnerabilities – Threatpost
Y
Y Combinator Blog
The Cloudflare Blog
P
Proofpoint News Feed
V
Visual Studio Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Tailwind CSS Blog
爱范儿
爱范儿
P
Privacy International News Feed
Security Archives - TechRepublic
Security Archives - TechRepublic
The GitHub Blog
The GitHub Blog
C
Cybersecurity and Infrastructure Security Agency CISA
B
Blog RSS Feed

博客园 - Prolove

android 开源框架推荐 手机游戏玩家来源渠道统计方法 Centos+Nginx+PHP+Mysql 如何调整不良的 IT 管理习惯 Mysql 数据库优化的几个办法 URL 重写 mysql 忘记 root 密码 DedeCms 生成性能终极优化策略 Red Hat Enterprise Linux AS release 4 下安装 gcc (转帖) linux 架设 subversion(svn) 版本控制[转载] js firefox3 下 fckeditor 插入超链接失效解决办法 Zend Studio 5.0 5.1 5.5 系列号 注册码 SN 不指定 google 病毒警告提示网站有病毒木马的解除方法 js 判断浏览器类型 iexplore.exe 应用程序错误 该内存不能为"read" php 求某时间段的时间戳开始和结尾 通过SSH 解压缩 .tar.gz .gz .zip 文件的方法 PHP: Allowed memory size of 的解决
点击 input 框,框内提示消失效果
Prolove · 2009-03-27 · via 博客园 - Prolove

前几天客户要求做一个“点击 input 框,框内提示文字自动消失” 这样的功能,js 还是挺简单的。

现在总结一下。

Code

只需要在你的 input 里加入这两个事件即可:

 onFocus=OnEnter(this) onBlur=OnExit(this)

ps:很久没有更新我的 blog 了。