$("#container").wTooltip([options]);
$("#container").wTooltip([options]);
|
Specify the color of the tooltip.
$("#container").wTooltip({position: "mouse"}); default: "default" values: "default", "mouse", "lt", "lm, "lb", "rt", "rm", "rb", "tl", "tc", "tr", "bl", "bm", "br" |
|
Only works when position is set to "default", it is the time before a stop that the tooltip has before it will no longer display at all unless user mouses over again.
$("#container").wTooltip({timeToStop: 2000}); default: null values: null or <integer> |
|
Specify the color of the tooltip. To add more styles just follow the format in the css file and you can call the color you like as long as the keyword exists there.
$("#container").wTooltip({color: "red"}); default: "cream" values: "red", "green", "blue", "white", "black", "cream", "yellow", "orange", "plum" or custom |
|
Specify background opacity of tooltip.
$("#container").wTooltip({opacity: 0.6}); default: 0.8 values: 0 to 1 |
|
Specify title for tooltip (will use title attribute of container by default if this is not set).
$("#container").wTooltip({title: "This is a tooltip"}); default: "No title set" values: <string> |
|
Specify the length in milliseconds for the tooltip to fade in.
$("#container").wTooltip({fadeIn: 200}); default: 0 values: <integer> |
|
Specify the length in milliseconds for the tooltip to fade out.
$("#container").wTooltip({fadeOut: 200}); default: 0 values: <integer> |
|
Specify the length in milliseconds for a delay before tooltip begins to appear.
$("#container").wTooltip({delayIn: 200}); default: 0 values: <integer> |
|
Specify the length in milliseconds for a delay before tooltip begins to disappear.
$("#container").wTooltip({delayOut: 200}); default: 0 values: <integer> |
|
Set an exact width for the tooltip.
$("#container").wTooltip({width: 200}); default: 0 values: <integer> |
|
Set an exact height for the tooltip.
$("#container").wTooltip({height: 50}); default: 0 values: <integer> |
|
The x offset of the tooltip from the mouse pointer.
$("#container").wTooltip({offsetX: 10}); default: 0 values: <integer> |
|
The y offset of the tooltip from the mouse pointer.
$("#container").wTooltip({offsetY: 20}); default: 0 values: <integer> |