jQuery: The Write Less, Do More JavaScript Library

UI/Shadow

From jQuery JavaScript Library

Jump to: navigation, search

« Back to the jQuery UI Docs

Adds a themable drop shadow to your elements.

Depends on: jquery.dimensions.js

NameType
Example:
Adds a drop shadow to the example element.

$("#example").shadow();

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
                    "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <script src="http://code.jquery.com/jquery-latest.js"></script>
  
  <script>
  $(document).ready(function(){
    $("#example").shadow();
  });
  </script>
  
</head>
<body>
  <link rel="stylesheet" href="http://dev.jquery.com/view/trunk/themes/flora/flora.all.css" type="text/css" media="screen" title="Flora (Default)">
<script src="http://dev.jquery.com/view/trunk/plugins/dimensions/jquery.dimensions.js"></script>
<script src="http://dev.jquery.com/view/trunk/fx/fx.shadow.js"></script>
<img id="example" style="height: 100px;" src="http://dev.jquery.com/view/trunk/ui/demos/images/resizable.jpg" />
</body>
</html>

NameType
Documentation:





NameType
shadow( options ) Returns: jQuery
Add a drop shadow to the matched elements.
shadowDestroy( ) Returns: jQuery
Destroys all shadows attached to the current jQuery elements.
shadowEnable( ) Returns: jQuery
Enables shadows.
shadowDisable( ) Returns: jQuery
Disables shadows.
Demos:

NameType