Hot!Ajax

...because open source matters

  • Increase font size
  • Default font size
  • Decrease font size

autohelp(jquery)

E-mail
(3 VOTITALY_VOTES, VOTITALY_AVERAGE: 4.33 VOTITALY_OUTOF)

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

预览:

代码:
/* 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 (1)add comment

Write comment
You must be logged in to post a comment. Please register if you do not have an account yet.

busy

LBL_NEWERNAME
LBL_OLDERNAME

 

Google Translator

link

  • jQuery

  • MooTools

  • boygj.com

  • Ajax技术论坛

  • QQ网址大全
  • Joomla!-开源天空
  • Web Development (Scripts) - TOP.ORG

We have 62 guests online