shadow jQuery Plugin

The shadow plugin creates a drop shadow for the selected element(s).

jQuery.fn.centerInClient = function([action | options], options, refreshOnly)

action
An action verb performed on the shadow:

hide - hides the shadow

if no action verb (string) is passed the options value can be used as the first parameter.

options
The following options and their default values are available:

var opt = { offset: 6, color: "black", opacity: 0.25, callback: null, zIndex: 100 };


refreshOnly
Internally used to refresh the shadow only rather than recreating it. Generally you don't need to worry about this parameter.

Simple Example

// Create a simple shadow with default settings $("#divDialog").shadow(); // Create with a couple of custom options $("#divFloatWindow").shadow( { offset: 8, opacity: .40 } ); // Hide the shadow $("#divDialog").shadow("hide");

Class Members

Requirements

See also:

Class modalDialog

  Last Updated: 12/2/2008 | © West Wind Technologies, 2008