IDCpp.graphicsDir = '/images/'; // Identify a caption for all images. This can also be set inline for each image. IDCpp.captionId = 'the-caption'; IDCpp.outlineType = 'rounded-white'; window.onload = function() { IDCpp.preloadImages(5); }