开发者

How do you make hint text like Mobile Me?

Could anybody tell me how to create something like the hint/labels on Apple's MobileMe login page (www.me.com) in that the label/开发者_如何学JAVAhint text just fades when you click on the box and doesn't go away until the user starts typing?

(And if you could use JQuery to do it, it'd be even better.)

Thank you very much!

(By label/hint text I mean the gray 'Username' and 'Password' text.)


The effect is called a "watermark" and there are plenty of JQuery plugins to help out:
http://plugins.jquery.com/search/node/watermark

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜