Cold drink is carbonated beverages, contains carbon dioxide that has dissolved under pressure. When the pressure is released by opening the cold drink container, the liquid cannot hold as much carbon dioxide, so the excess bubbles out of the solution.
If the cold drink is left open, additional carbon dioxide will slowly escape into the air. Under warm conditions, the carbon dioxide leaves the solution faster.