From jQuery JavaScript Library
« Back to the jQuery UI Docs
Adds a themable drop shadow to your elements.
Depends on: jquery.dimensions.js
Example:| Name | Type |
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>
Documentation:Demos: