Plugins
Plugins - Drop Shadows
The Drop Shadows plugin helps you create pretty, sophisticated drop shadows for your menus.
Dependencies
To make this plugin work, you must include one extra JavaScript libary found in the js/ directory. Your code should look something like this if you need to use this plugin:
<script src="../js/core.WebDDM.compressed.js"></script>
<script src="../js/dropshadows.WebDDM.compressed.js">
	<!-- For WebDDM drop-shadow plugin -->
</script>
Different Types of Shadows
The WebDDM Drop Shadow plugin offers three types of shadows: smooth, flat image, and flat color.
The menu that is always visible above (Home, More Info, JavaScript Calls) has a smooth shadow. The "More Info" submenu has a flat image, and the "JavaScript Calls" submenu has a flat color.
Below, we give some example code and descriptions for configuring each shadow type. Then, at the very end of this page, we will go over the configuration needed for ALL shadows.
Using Smooth Shadows
A smooth shadow is made up of one image, which the drop shadow plugin dynamically tiles to create a continuous, smooth, and beautiful shadow. See the image for the shadow we have.
If you want a smooth shadow, put this array in your 'items' array (and as always, use our example menu code as a reference):
// Smooth Shadow
'drop-shadow':{
	'smooth':{
		'image-body':'path/to/smooth_shadow.png',
		'image-width':485,
		'image-height':485,
		'image-border-size':12
	},
	'shadow-offset-x':3,
	'shadow-offset-y':3,
	'shadow-extra-width':7,
	'shadow-extra-height':7
},


Configuration for smooth shadows:
Using Flat Image Shadows
A flat image shadow is simply made up of one image, scaled by your browser to the appropriate width and height. See the image we use for the flat image shadow on this page.
If you want a flat image shadow, put this array in your 'items' array (and as always, use our example menu code as a reference):
// Flat Image Shadow
'drop-shadow':{
	'flat':{
		'image':'path/to/flat_shadow.png'
	},
	'shadow-offset-x':4,
	'shadow-offset-y':4,
	'shadow-extra-width':4,
	'shadow-extra-height':4
},


Configuration for flat image shadows:
Using Flat Color Shadows
A flat color shadow is simply made up of one color, filling up an area that you define.
If you want a flat color shadow, put this array in your 'items' array (and as always, use our example menu code as a reference):
// Flat Color Shadow
'drop-shadow':{
	'flat':{
		'color':'#777777'
	},
	'shadow-offset-x':4,
	'shadow-offset-y':4,
	'shadow-extra-width':4,
	'shadow-extra-height':4
},


Configuration for flat color shadows:
Configurations Used by All Shadows
The following configuration is needed for every shadow type:
View Source
View CSS file - View JavaScript file.
Plugins
Plugins: Last - Next