[jQuery] SVN changes: New $.fx.FadeTo & name="id" bug fixed.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Tahoma">'lo,
I've written a new function called $.fx.FadeTo.
It requires 2 parameters, but can take 3.
$.fn.fadeTo = function(a,ev,o)
<b>a</b> and <b>o</b> are thesame as you call other effects, but <b>ev</b>
is the <b>end value</b> (in double)
For example, if you have a div with opacity 0.0 and you call the
following code, it fades to 0.8
$('#someid').fadeTo('slow', 0.8);
For example, if you call this code, the div fades to 1.0 and then to
0.5 after :) kinda cool!
</font></font><font size="-1"><font face="Tahoma">$('#someid')</font></font><font
size="-1"><font face="Tahoma">.fadeTo('slow', 1.0, function () {
$(this).fadeTo('slow', 0.5); } );
I've also fixed the bug which prevented an element with ' name="id" '.
Regards,
Gilles
</font></font>
</body>
</html>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/