jQuery Advisor plugin
Advisor is simple jQuery plugin to help users to understand what should they write in inputs. Just set class = "show_advice" for your inputs and set up Advisor:
$(document).ready(function()
{
$('#first').fAdvisor();
});
You can also set few variables:
- inputClass - by default 'show_advice'. Feel free to set another class for your inputs (especially when you have more than one form on one site and you want to set separated css for them)
- inputBgChange - if you don't want to change your input background when it's focused set this to false
- clearFieldBackground - background-color of non-focused field
- currentFieldBackground - background-color of focused field
- side - where advisor should be shown: 'left' or 'right' side of form
- offset - sometimes you need offset in X axis
- fadeTime - how long advisor will fade in
- staticMessage - if you want to put advisor content into static div that exists on site set this variable true
- staticId - id of static advisor
for example:
$(document).ready(function()
{
$('#first').formAdvisor({ fadeTime: 1500});
});
will change time of fade in advisor box to 1500ms.
Remember also to add css style to advisor box class (form_advisor).