The horizontal-branch stars in globular clusters. 2: The second parameter phenomenon