Probably the biggest problem of a high degree of specialization may be that learning outcomes can be long in coming if you do not even open up new areas of studies for yourself. So I was looking for a system that I've never used before. The second criterion was that I wanted to quickly achieve results to have something demonstratable at the end of the day. Thus, I have to announce two new jQuery plugins, which are really useful - at least, I hope you also see the benefits :-)
jQuery xcolor plugin
Most color manipulation functions of this plugin are based on ideas of common graphic-programs. I started analyzing the behavior of the colors and later added more complex methods which needed a bit more research. What now follows is a little sample of the API. For the rest, read the documentation and demo page, which I designed to provide an example besides short description.
For those of you, who want to use the library without jQuery, the source is also available. The only difference to the jQuery solution might be, that you have two classes, which are veiled inside of the jQuery interface. xColor is used as input parser and xColorMix is the real method collection. Internally $.xcolor is initialized like so:
$.xcolor = new xColorMix();
jQuery borderStyle plugin
I wrote at some point the method excludeLargestAmmount(), which searches for the largest ammount in an array, splits it out and leave the rest in the array. This way, the method is predestined to optimize border radii settings. borderStyle was my first jQuery plugin to become familar with the API. The plugin adds a new method borderStyle() to the jQuery selector to modify border styles. I also wrote a little parser to pass the arguments as string besides the general object handling. By calling the method without parameters, you'll get the border styles of the first selected element. Examples:
You might also be interested in the following
- jQuery Pagination revised
- Tag Cloud plugin for Smarty
Sorry, comments are closed for this article. Contact me if you have an inventive contribution.