The examples given in the documentation of OpenLayers show very basic ways of utilising the different features. This example shows how to add shadows to the marker. This example shows how to create basic popups.
Looking at the sample code, I have no idea how to combine the two together, nor display different icons for the markers. Can anyone show me a tutorial or example that combines the various aspects of custom markers, shadows and popups using JSON data?