Fancy Form

A jQuery plugin to style form elements while keeping the original form for people without javascript.
© 2008 the people's valley

Version control

Known issues

How to use

Properties

  1. theme: <String> defaults to "fancy"; name of the theme to use; you can define more then one theme in a page and switch themes example
  2. debug: <Boolean> defaults to true; Do you want a notification if the theme is not found? example
  3. pulldownItems: <Number> defaults to 10; how many items do you want to be displayed in a pulldown menu? example
  4. lazyPulldown: <Boolean> defaults to false; The pulldownwidth in a lazyPulldown is dynamic; while the pulldownwidth in a strictPulldown is fixed example

Images

Every theme uses it's own images which you can group in a folder; since you create the theme you can use your own naming scheme.
You can either make images for normal and active state seperate or put them in 1 image; if you decide to put them together in one file you can switch between accoring to this example:

.fancy .checkbox {
	background: url(../images/checkbox.gif) no-repeat 0 0;
	width: 15px;
	height: 13px;
}
.fancy .checkboxactive {
	background: url(../images/checkbox.gif) no-repeat 0 -13px;
	width: 15px;
	height: 13px;
}
		
As you can see it's rather easy, just put in an offset. checkbox example