Displaying a custom overlay Displaying a custom overlay The following code example creates a custom overlay. This example contains jQuery code.