Thursday, 08 January 2009
Home jQuery Accordions | Menu | Form autohelp(jquery)
autohelp(jquery) PDF Print E-mail
(2 votes, average: 4.00 out of 5)
Written by LXR   
Tuesday, 09 October 2007 03:29

一些时候告诉我们的用户该怎样做,特别是填写一些复杂的表格时。

预览:

代码:
/* jQuery autohelp Copyright Dylan Verheul
<
  This e-mail address is being protected from spambots. You need JavaScript enabled to view it
  /> * Licensed like jQuery, see http://docs.jquery.com/License
 */

$.fn.autohelp = function(t, o) {
	t = $(t); o = o || {};
	var h;
	this.focus(function() { h = t.html(); (o.hide ? t.show() : t).html(this.title); })
	    .blur(function() { (o.hide ? t.hide() : t).html(h); });
	return this;
}
本文来源:http://www.dyve.net/jquery/?autohelp
文件下载
Comments (0)add comment

Write comment

busy

Newer news items:
Older news items: