OK, so this plugin does the yellow fade and then some. This is version 0.7 and unless I decide to add e-mail support I'm done with this plugin. The current revision supports the following features:
$('p.red').highlightFade('red') to do a red highlightFade.$.highlightFade.defaults.speed to 2000 and you could forego specifying it in any of your plug-in calls.rgb(255,255,128). Default is customizable. Acceptable values are:
[255,255,255]).rgb(255,255,255) or rgb(100%,100%,100%))#FFF or #FFFFFF)'white', 'blue', 'red', 'black', et. al)$.speed. Default is customizable.borderColor, borderLeftColor, backgroundColor, etc. Default is backgroundColor. There are two known and essentially unfixable (unless a JS guru helps me out) issues regarding border settings. First of all, because there is a bug in the Gecko engine (used in firefox and others), the borderColor attribute will not always be available and when it is available, it is often in a form which cannot be parsed by the plug-in. Because of this, to ensure the highlightFade is a smooth transition back to the original border color, you must specify the end color value. These exceptions can be ignored if working on a white background. Secondly, when applying multiple border effects, (for example, one universal border effect while simultaneously running a single border effect) be sure to run the edge specific effects (e.g. borderLeftColor) after the generic effect to ensure the generic doesn't override the specific. Even still, those effects are troublesome at best. Additionally (and fairly obviously), if you do not have a visible border specified, there will be no visible effect.background-color style of the element after the effect has finished. This property is very esoteric and only really useful when you are attempting to remove styles applied from previous highlightFades. A purpose of it can be seen by clicking on the colour shifting header tag at the top of the page. Mouseover events cause the element to fade to a new background colour and clicking moves to its parent elements background colour and then removes the style attribute. If the final property is not specified as an empty string (ie inherit the parent element's background colour), then if the parent element changes background colour, the child will not follow suit and instead retain the ending colour of the previous highlightFade effect. Default cannot be customized.I planed on putting demos on their own page with separate pages displaying different features and aspects of the plug-in but seeing as I'm absurdly lazy and my school year just started up, I doubt that's happening anytime soon. Additionally, recent improvements to the jQuery plug-in Interface allow it to do what my plug-in does and more, so it'd be best to use that for more advanced work. The code can be downloaded here.
Click here to view a typical highlightFade
Click here to do a red exponential highlightFade on all p elements on the page at a crawl speed
Click here to do a bluish sinusoidal highlightFade on this element and remove it afterwards
Click here to remove my parent element from the document (while yellow fading omgz!1)
Click here to see a sinusoidal blue crawling highlightFade
Click here to do a border highlightFade (with a special left border highlightFade) on this element while highlightFading the element (at different speeds) while highlightFading the color of the text. (phew)